Skip to main content
Language

Show Editor

The PESDK class is the main entry point for opening the editor. You can either use the callable static function PESDK.openEditor as shown in this example or use the PhotoEditorModal. For reference on the last method, please take a look at the dedicated guides here.

Open the editor#

In order to load the image into the editor simply specify it as the image parameter inside the asynchronous PESDK.openEditor function. In this example, we load a photo from the bundle into the editor.

Handle events#

Once the editor finishes, a PhotoEditorResult is returned which contains the edited image at PhotoEditorResult.image. If no result is returned, the user has cancelled the editing process by clicking the cancel button inside the editor.

Next Steps#