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

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

    Declaration

    Swift

    public 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

    public 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

    public let overlayButtonConfigurationClosure: ((OverlayButton, StickerOverlayAction) -> Void)?
  • Defines all allowed actions. Only buttons for allowed actions are visible. Defaults to show all available actions.

    Declaration

    Swift

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

    Declaration

    Swift

    public let stickerOverlayActionSelectedClosure: ((StickerOverlayAction) -> Void)?
  • The insets used to layout the overlay buttons in their container. The .top value is ignored.

    Declaration

    Swift

    public let overlayButtonInsets: UIEdgeInsets
  • 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.