StickerOptionsToolControllerOptions

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKStickerOptionsToolControllerOptions)
open class StickerOptionsToolControllerOptions : ToolControllerOptions

Options for configuring a StickerOptionsToolController.

  • Defines all allowed actions. Only buttons for allowed action are visible. Defaults to show all available actions.

    Declaration

    Swift

    open let allowedStickerActions: [StickerAction]
  • This closure is called when the user selects an action.

    Declaration

    Swift

    open let stickerActionSelectedClosure: ((StickerAction) -> Void)?
  • This closure allows further configuration of the action buttons. The closure is called for each action button and has the button and its corresponding action as parameters.

    Declaration

    Swift

    open let actionButtonConfigurationClosure: ((UICollectionViewCell, StickerAction) -> Void)?
  • This closure allows further configuration of the overlay buttons. The closure is called for each button and has the button and its corresponding enum value as parameters.

    Declaration

    Swift

    open let overlayButtonConfigurationClosure: ((OverlayButton, StickerOverlayAction) -> Void)?
  • Defines all allowed actions. Only buttons for allowed actions are visible. Defaults to show all available actions. To set this property from Obj-C, see the allowedStickerOverlayActionsAsNSNumbers property.

    Declaration

    Swift

    open let allowedStickerOverlayActions: [StickerOverlayAction]
  • This closure is called when the user selects an action.

    Declaration

    Swift

    open let stickerOverlayActionSelectedClosure: ((StickerOverlayAction) -> Void)?
  • Creates an instance of StickerOptionsToolControllerOptions using the default builder.

    Declaration

    Swift

    public convenience init()
  • Creates an instance of StickerOptionsToolControllerOptions using the given builder.

    Declaration

    Swift

    public init(builder: StickerOptionsToolControllerOptionsBuilder)

    Parameters

    builder

    A builder to create the options.