StickerToolControllerOptions
@objc(PESDKStickerToolControllerOptions) open class StickerToolControllerOptions: ToolControllerOptions
Options for configuring a StickerToolController
.
-
This closure is called when the user adds a sticker.
Declaration
Swift
open 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
open let stickerCategoryButtonConfigurationClosure: ((IconBorderedCollectionViewCell, 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 let stickerButtonConfigurationClosure: ((StickerCollectionViewCell, Sticker) -> Void)?
-
The size of the stickers in the preview. Default is
(44, 44)
.Declaration
Swift
open let stickerPreviewSize: CGSize
-
Returns a newly allocated instance of a
StickersToolControllerOptions
using the default builder.Declaration
Swift
public convenience init()
Return Value
An instance of a
MainToolControllerOptions
. -
Returns a newly allocated instance of a
StickersToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: StickerToolControllerOptionsBuilder)
Parameters
builder
A
StickersToolControllerOptionsBuilder
instance.Return Value
An instance of a
StickersToolControllerOptions
.