StickerCollectionDelegate
@objc(PESDKStickerCollectionDelegate)
public protocol StickerCollectionDelegate : AnyObject
The StickerCollectionDelegate
protocol defines methods to handle stickers provided by StickerCollection
.
-
Tells the delegate when a new sticker is selected and that it should be added to the canvas.
Important
This method can be called on a background thread. UI updates will be dispatched to the main thread internally.
Declaration
Swift
func stickerCollection(_ stickerCollection: StickerCollection, didSelect sticker: Sticker)
Parameters
stickerCollection
The sticker collection object that initiated the loading.
sticker
The sticker to be inserted.