PhotoEditViewControllerDelegate

@objc(PESDKPhotoEditViewControllerDelegate) public protocol PhotoEditViewControllerDelegate

The PhotoEditViewControllerDelegate protocol defines methods that allow you to respond to the events of an instance of PhotoEditViewController.

  • Called when the output image was generated.

    Declaration

    Swift

    func photoEditViewController(_ photoEditViewController: PhotoEditViewController, didSave image: UIImage, and data: Data)

    Parameters

    photoEditViewController

    The photo edit view controller that created the output image.

    image

    The output image that was generated.

    data

    The output image that was generated, as NSData. This will contain all the exif-data of the input image.

  • Called when the output image could not be generated.

    Declaration

    Swift

    func photoEditViewControllerDidFailToGeneratePhoto(_ photoEditViewController: PhotoEditViewController)

    Parameters

    photoEditViewController

    The photo edit view controller that was unable to generate the output image.

  • Called when the user wants to dismiss the editor.

    Declaration

    Swift

    func photoEditViewControllerDidCancel(_ photoEditViewController: PhotoEditViewController)

    Parameters

    photoEditViewController

    The photo edit view controller that is asking to be cancelled.