StickerCategoryDataSource
@objc(PESDKStickerCategoryDataSource) open class StickerCategoryDataSource: NSObject
A sticker category data source provides the sticker categories that should be displayed in the sticker tool.
-
The collection view of this data source.
Declaration
Swift
open let collectionView: UICollectionView
-
The sticker categories to display.
Declaration
Swift
open var stickerCategories: [StickerCategory]? = StickerCategory.all
-
A closure that is called when the sticker categories changed.
Declaration
Swift
open var stickerCategoriesChangedClosure: (() -> Void)?
-
A closure that is called to modify the cell for a given sticker category.
Declaration
Swift
open var stickerCategoryCellConfigurationClosure: ((IconBorderedCollectionViewCell, StickerCategory) -> Void)?
-
The activity indicator that is displayed instead of the collection view while
stickerCategories
isnil
or does not have any items.Declaration
Swift
private(set) open lazy var activityIndicator: UIActivityIndicatorView =
-
Creates a new sticker category data source for the given collection view.
Declaration
Swift
public init(collectionView: UICollectionView)
Parameters
collectionView
The collection view of this data source.