StickerDataSource
@objc(PESDKStickerDataSource) open class StickerDataSource: NSObject
A sticker data source provides the stickers that should be displayed in the sticker tool.
-
The collection view of this data source.
Declaration
Swift
open let collectionView: UICollectionView
-
The stickers to display.
Declaration
Swift
open var stickers: [Sticker]?
-
A closure that is called to modify the cell for a given sticker.
Declaration
Swift
open var stickerCellConfigurationClosure: ((StickerCollectionViewCell, Sticker) -> Void)?
-
Creates a new sticker data source for the given collection view.
Declaration
Swift
public init(collectionView: UICollectionView)
Parameters
collectionView
The collection view of this data source.