Skip to main content
Language

Present Photo Editor

Create SettingsList#

The PhotoEditorSettingsList stores all the settings that are used to configure the photo editor and its tools. The configure() method is used to configure the different ImglySettings models inside the SettingsList. Here, we configure the LoadSettings to set the source to the Uri of the photo to be loaded.

Start Editor#

The PhotoEditorBuilder takes in the configured PhotoEditorSettingsList and starts the photo editor. The resultId passed in the startActivityForResult() method is returned as requestCode in onActivityResult() when the editor exits.

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 status of the export.