Protocols
The following protocols are available globally.
-
A controller that implements
See moreTransitionProviding
provides a custom transition animator to use when presenting or dismissing the controller.Declaration
Swift
public protocol TransitionProviding
-
Every frame builder must implement this protocol.
See moreDeclaration
Swift
@objc(PESDKFrameBuilderProtocol) public protocol FrameBuilder
-
The
See moreCanvasViewDataSource
protocol defines methods that allow you to pass needed information to the canvas view.Declaration
Swift
@objc(PESDKCanvasViewDataSource) public protocol CanvasViewDataSource
-
The
See moreCanvasViewDelegate
protocol defines methods that allow you to react to changes of the canvas view.Declaration
Swift
@objc(PESDKCanvasViewDelegate) public protocol CanvasViewDelegate
-
The
See morePhotoEditToolControllerDelegate
protocol defines methods that allow you respond to the events of an instance ofPhotoEditToolController
.Declaration
Swift
public protocol PhotoEditToolControllerDelegate
-
The
See moreGeneratorDelegate
protocol defines methods that allow you to respond to changes that are made to a generator.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 moreDeclaration
Swift
public protocol ToolbarItemProviding
-
A
See moreTransitionAnimator
provides a custom transition animation.Declaration
Swift
public protocol TransitionAnimator
-
The methods declared by the
See moreCropAndStraightenViewDelegate
protocol allow the adopting delegate to respond to message from theCropAndStraightenView
class and thus respond to operations such as tracking.Declaration
Swift
@objc(PESDKCropAndStraightenViewDelegate) public protocol CropAndStraightenViewDelegate
-
This delegate is used to inform a UI component when a new blend mode is selected.
See moreDeclaration
Swift
@objc(PESDKModeSelectionViewDelegate) public protocol ModeSelectionViewDelegate
-
The
See moreScalePickerDelegate
protocol defines a set of methods you can use to receive value-change messages forScalePicker
objects.Declaration
Swift
@objc(PESDKScalePickerDelegate) public protocol ScalePickerDelegate
-
The
See morePhotoEditViewControllerDelegate
protocol defines methods that allow you to respond to the events of an instance ofPhotoEditViewController
.Declaration
Swift
@objc(PESDKPhotoEditViewControllerDelegate) public protocol PhotoEditViewControllerDelegate
-
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 moreDeclaration
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 moreDeclaration
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
See moreAnalyticsClient
instance withAnalytics.addAnalyticsClient(_:)
.Declaration
Swift
@objc(PESDKAnalyticsClient) public protocol AnalyticsClient: class
-
The
See moreFontSelectorViewDelegate
protocol defines methods that allow you to respond to the events of an instance ofFontSelectorView
.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 moreDeclaration
Swift
@objc(PESDKProgressViewDisplayer) public protocol ProgressViewDisplayer