PhotoEditViewControllerDelegate
@objc(PESDKPhotoEditViewControllerDelegate) public protocol PhotoEditViewControllerDelegate : MediaEditViewControllerDelegate The PhotoEditViewControllerDelegate protocol defines methods that allow you to respond to the events of an instance of PhotoEditViewController.
-
Called before the output image is generated.
Declaration
Swift
@objc optional func photoEditViewControllerShouldStart(_ photoEditViewController: PhotoEditViewController, task: PhotoEditorTask) -> BoolParameters
photoEditViewControllerThe photo edit view controller that will create the output image.
taskThe input data, containing the input image and
PhotoEditModel. -
Called when the output image was generated.
Declaration
Swift
func photoEditViewControllerDidFinish(_ photoEditViewController: PhotoEditViewController, result: PhotoEditorResult)Parameters
photoEditViewControllerThe photo edit view controller that created the output image.
resultThe result of the processing, containing output image data and the export status.
-
Called when the output image could not be generated.
Declaration
Swift
func photoEditViewControllerDidFail(_ photoEditViewController: PhotoEditViewController, error: PhotoEditorError)Parameters
photoEditViewControllerThe photo edit view controller that was unable to create the output image.
errorThe occurred error.
-
Called when the user wants to dismiss the editor.
Declaration
Swift
func photoEditViewControllerDidCancel(_ photoEditViewController: PhotoEditViewController)Parameters
photoEditViewControllerThe photo edit view controller that is asking to be cancelled.
View on GitHub
Install in Dash
PhotoEditViewControllerDelegate Protocol Reference