StickerToolControllerOptionsBuilder

@objcMembers
@objc(PESDKStickerToolControllerOptionsBuilder)
open class StickerToolControllerOptionsBuilder : ToolControllerOptionsBuilder

The default StickerToolControllerOptionsBuilder for StickerToolControllerOptions.

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

    Declaration

    Swift

    open var 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

    open var 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

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

    Declaration

    Swift

    open var 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. Default is 0.

    Declaration

    Swift

    open var defaultStickerCategoryIndex: Int
  • Whether the user can create personal stickers from the device’s photo library. If true an action button is added as first item in the menu in front of the sticker categories which modally presents an UIImagePickerController for personal sticker creation. Personal stickers will be added to a personal sticker category which will be added between the action button and the regular sticker categories if it does not exist. Default is false.

    Declaration

    Swift

    open var personalStickersEnabled: Bool
  • The default tint mode for personal stickers. Default is StickerTintMode.none.

    Declaration

    Swift

    open var defaultPersonalStickerTintMode: StickerTintMode
  • The weather provider used for all smart weather stickers. The default is nil which will hide all smart weather stickers or MultiImageStickers that contain smart weather stickers from the StickerSelectionController.

    Declaration

    Swift

    open var weatherProvider: WeatherProvider?
  • Creates a new instance of StickerToolControllerOptionsBuilder initialized with the given options.

    Declaration

    Swift

    public init(options: StickerToolControllerOptions)

    Parameters

    options