StickerToolControllerOptions

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKStickerToolControllerOptions)
open class StickerToolControllerOptions : ToolControllerOptions

Options for configuring a StickerToolController.

  • This closure is called when the user adds a sticker.

    Declaration

    Swift

    public let addedStickerClosure: ((Sticker) -> Void)?
  • This closure allows further configuration of the sticker category buttons. The closure is called for each sticker category button and has the button and its corresponding sticker category as parameters.

    Declaration

    Swift

    public let stickerCategoryButtonConfigurationClosure: ((MenuCollectionViewCell, StickerCategory) -> Void)?
  • This closure allows further configuration of the sticker buttons. The closure is called for each sticker button and has the button and its corresponding sticker as parameters.

    Declaration

    Swift

    public let stickerButtonConfigurationClosure: ((StickerCollectionViewCell, Sticker) -> Void)?
  • The size of the stickers in the preview. Default is (44, 44).

    Declaration

    Swift

    public let stickerPreviewSize: CGSize
  • The index of the sticker category that should be selected when initially presenting the tool. If this index is larger than the number of available categories, the first category will be used.

    Declaration

    Swift

    public let defaultStickerCategoryIndex: Int
  • Creates a new instance of StickerToolControllerOptions using the given builder.

    Declaration

    Swift

    public init(builder: StickerToolControllerOptionsBuilder)

    Parameters

    builder