For the sake of this example, we load a photo from the resources into the photo editor.
By default, PhotoEditor SDK exports the photo as a temporary file in the application's cache directory.
The result from the editor is received in the
EditorSDKResult wraps around the intent and provides a convenient API to check the result. The
Uri of the exported photo can be accessed via
EditorSDKResult.resultUri. Here, we launch a coroutine to read the bytes of the exported photo and then encode them into a Base64 string while showing a loader.