Protocols

The following protocols are available globally.

  • A controller that implements TransitionProviding provides a custom transition animator to use when presenting or dismissing the controller.

    See more

    Declaration

    Swift

    public protocol TransitionProviding
  • Every frame builder must implement this protocol.

    See more

    Declaration

    Swift

    @objc(PESDKFrameBuilderProtocol) public protocol FrameBuilder
  • The CanvasViewDataSource protocol defines methods that allow you to pass needed information to the canvas view.

    See more

    Declaration

    Swift

    @objc(PESDKCanvasViewDataSource) public protocol CanvasViewDataSource
  • The CanvasViewDelegate protocol defines methods that allow you to react to changes of the canvas view.

    See more

    Declaration

    Swift

    @objc(PESDKCanvasViewDelegate) public protocol CanvasViewDelegate
  • The GeneratorDelegate protocol defines methods that allow you to respond to changes that are made to a generator.

    See more

    Declaration

    Swift

    @objc(PESDKGeneratorDelegate) public protocol GeneratorDelegate
  • A view controller that is pushed onto a toolbar controller must implement this protocol if it wants to present a toolbar item in the toolbar.

    See more

    Declaration

    Swift

    public protocol ToolbarItemProviding
  • A TransitionAnimator provides a custom transition animation.

    See more

    Declaration

    Swift

    public protocol TransitionAnimator
  • The methods declared by the CropAndStraightenViewDelegate protocol allow the adopting delegate to respond to message from the CropAndStraightenView class and thus respond to operations such as tracking.

    See more

    Declaration

    Swift

    @objc(PESDKCropAndStraightenViewDelegate) public protocol CropAndStraightenViewDelegate
  • This delegate is used to inform a UI component when a new blend mode is selected.

    See more

    Declaration

    Swift

    @objc(PESDKModeSelectionViewDelegate) public protocol ModeSelectionViewDelegate
  • The ScalePickerDelegate protocol defines a set of methods you can use to receive value-change messages for ScalePicker objects.

    See more

    Declaration

    Swift

    @objc(PESDKScalePickerDelegate) public protocol ScalePickerDelegate
  • To use a custom progress HUD when saving a photo or while downloading stickers etc., your progress view must implement this protocol. Please note that your custom progress view should disable user interaction in all parts of the editor. Changing state while the progress view is visible can cause unexpected behavior.

    See more

    Declaration

    Swift

    @objc(PESDKProgressView) public protocol ProgressView
  • The logger is used by the SDK, to promote import informations. A client could use his own logger to log the messages to a server or something alike.

    See more

    Declaration

    Swift

    @objc(PESDKLoggerProtocol) public protocol LoggerProtocol
  • Consumers of analytics screen views and events must implement this protocol. You can then forward all screen views and events to an analytics service of your choice. To receive events you must register your AnalyticsClient instance with Analytics.addAnalyticsClient(_:).

    See more

    Declaration

    Swift

    @objc(PESDKAnalyticsClient) public protocol AnalyticsClient: class
  • The FontSelectorViewDelegate protocol defines methods that allow you to respond to the events of an instance of FontSelectorView.

    See more

    Declaration

    Swift

    @objc(PESDKFontSelectorViewDelegate) public protocol FontSelectorViewDelegate
  • This protocol is used to delegate show and hide commands to any view that is able to display a progress view.

    See more

    Declaration

    Swift

    @objc(PESDKProgressViewDisplayer) public protocol ProgressViewDisplayer