ADPhotoKit Documentation

Protocol ADThumbnail​Cell​Configurable

public protocol ADThumbnailCellConfigurable  

Use to define thumbnail controller's collection view cell.

%261 ADThumbnailCellConfigurable ADThumbnailCellConfigurable ADThumbnailListCell ADThumbnailListCell ADThumbnailListCell->ADThumbnailCellConfigurable

Types Conforming to ADThumbnail​Cell​Configurable

ADThumbnailListCell

Cell for display asset in thumbnail controller.

Requirements

select​Status

var selectStatus: ADAssetModel.SelectStatus  

Thumbnail cell select status.

asset​Model

var assetModel: ADAssetModel!  

Asset model to config cell interface.

index​Path

var indexPath: IndexPath!  

Cell indexPath in collection view.

select​Action

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

model ADAsset​Model

Asset info.

cell​Select​Action()

func cellSelectAction() 

Select or deselect cell.