Protocols
The following protocols are available globally.
-
The
See moreGeneratorDelegate
protocol defines methods that allow you to respond to changes that are made to a generator.Declaration
Swift
@objc(IMGLYGeneratorDelegate) public protocol GeneratorDelegate
-
The
See moreFontSelectorViewDelegate
protocol defines methods that allow you to respond to the events of an instance ofFontSelectorView
.Declaration
Swift
@objc(IMGLYFontSelectorViewDelegate) public protocol FontSelectorViewDelegate
-
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
-
To use a custom progress HUD when saving a photo or while downloading stickers etc., your progress view must implement this protocol.
See moreDeclaration
Swift
@objc(IMGLYProgressView) public protocol ProgressView
-
The
See moreScalePickerDelegate
protocol defines a set of methods you can use to receive value-change messages forScalePicker
objects.Declaration
Swift
@objc(IMGLYScalePickerDelegate) public protocol ScalePickerDelegate
-
The
See moreCanvasViewDataSource
protocol defines methods that allow you to pass needed information to the canvas view.Declaration
Swift
@objc(IMGLYCanvasViewDataSource) public protocol CanvasViewDataSource
-
The
See moreCanvasViewDelegate
protocol defines methods that allow you to react to changes of the canvas view.Declaration
Swift
@objc(IMGLYCanvasViewDelegate) 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 morePhotoEditViewControllerDelegate
protocol defines methods that allow you to respond to the events of an instance ofPhotoEditViewController
.Declaration
Swift
@objc(IMGLYPhotoEditViewControllerDelegate) public protocol PhotoEditViewControllerDelegate
-
Every frame builder must implement this protocol.
See moreDeclaration
Swift
@objc(IMGLYFrameBuilderProtocol) public protocol FrameBuilder
-
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(IMGLYCropAndStraightenViewDelegate) public protocol CropAndStraightenViewDelegate
-
A
See moreTransitionAnimator
provides a custom transition animation.Declaration
Swift
public protocol TransitionAnimator
-
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(IMGLYAnalyticsClient) public protocol AnalyticsClient: class
-
A controller that implements
See moreTransitionProviding
provides a custom transition animator to use when presenting or dismissing the controller.Declaration
Swift
public protocol TransitionProviding