Protocol
ADThumbnailCellConfigurable
public protocol ADThumbnailCellConfigurable
Use to define thumbnail controller's collection view cell.
Relationships
Types Conforming to ADThumbnailCellConfigurable
ADThumbnailListCell
Cell for display asset in thumbnail controller.
Requirements
indexPath
var indexPath: IndexPath!
Cell indexPath in collection view.
selectAction
var selectAction: ((ADThumbnailCellable,Bool)->Void)?
Called when cell select or deselect. The parameter Bool
represent asset is selet or not.
configure(with:)
func configure(with model: ADAssetModel)
Config cell with asset model.
Parameters
Name | Type | Description |
---|---|---|
model | ADAssetModel |
Asset info. |
cellSelectAction()
func cellSelectAction()
Select or deselect cell.