Protocols

The following protocols are available globally.

  • The GeneratorDelegate protocol defines methods that allow you to respond to changes that are made to a generator.

    See more

    Declaration

    Swift

    @objc(IMGLYGeneratorDelegate) public protocol GeneratorDelegate
  • The FontSelectorViewDelegate protocol defines methods that allow you to respond to the events of an instance of FontSelectorView.

    See more

    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 more

    Declaration

    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 more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

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

    See more

    Declaration

    Swift

    @objc(IMGLYCanvasViewDelegate) public protocol CanvasViewDelegate
  • Every frame builder must implement this protocol.

    See more

    Declaration

    Swift

    @objc(IMGLYFrameBuilderProtocol) public protocol FrameBuilder
  • 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(IMGLYCropAndStraightenViewDelegate) public protocol CropAndStraightenViewDelegate
  • A TransitionAnimator provides a custom transition animation.

    See more

    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 AnalyticsClient instance with Analytics.addAnalyticsClient(_:).

    See more

    Declaration

    Swift

    @objc(IMGLYAnalyticsClient) public protocol AnalyticsClient: class
  • 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