ADPhotoKit Documentation

Class ADThumbnail​List​Cell

public class ADThumbnailListCell: UICollectionViewCell  

Cell for display asset in thumbnail controller.

%35 ADThumbnailListCell ADThumbnailListCell UICollectionViewCell UICollectionViewCell ADThumbnailListCell->UICollectionViewCell ADThumbnailCellConfigurable ADThumbnailCellConfigurable ADThumbnailListCell->ADThumbnailCellConfigurable

Nested Types

ADThumbnailListCell.Key

Key for attribute.

ADThumbnailListCell.State

State of cell.

ADThumbnailListCell.Appearance

Appearance of cell.

Conforms To

ADThumbnailCellConfigurable

Use to define thumbnail controller's collection view cell.

UICollectionViewCell

Properties

select​Status

public var selectStatus: ADAssetModel.SelectStatus  

Thumbnail cell select status.

select​Action

public var selectAction: ((ADThumbnailCellable,Bool)->Void)? 

Called when cell select or deselect. The parameter Bool represent asset is selet or not.

asset​Model

public var assetModel: ADAssetModel! 

Asset model to config cell interface.

index​Path

public var indexPath: IndexPath! 

Cell indexPath in collection view.

Methods

configure(with:​)

public func configure(with model: ADAssetModel)  

Config cell with asset model.

Parameters

model ADAsset​Model

Asset info.

cell​Select​Action()

public func cellSelectAction()  

Select or deselect cell.

set​Attributes(_:​)

@objc
    public func setAttributes(_ attrs: [Key : Any]?)  

You may specify the corner radius, index color, index font, desc font, and desc color properties for the cell in the attributes dictionary, using the keys found in ADThumbnailListCell.Key.

Parameters

attrs [Key :​ Any]?

Attributes dictionary.

set​Appearance(_:​for:​)

public static func setAppearance(_ appearance: Appearance, for state: State)  

Config appearance for diffent cell state.

Parameters

appearance Appearance

Appearance of cell.

state State

State of cell.