Skip to main content
Language

To a Remote URL

Start Editor#

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.

Handle Result#

The result from the editor is received in the onActivityResult() method. 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 upload the exported photo by launching a coroutine and calling the NetworkUtils.upload() suspend function. While the upload is running, we show a loader and dismiss it when the upload is finished.