ADPhotoKit Documentation

Class ADAlbum​Model

public class ADAlbumModel: Equatable  

Model contain album info.

%147 ADAlbumModel ADAlbumModel CustomStringConvertible CustomStringConvertible ADAlbumModel->CustomStringConvertible Equatable Equatable ADAlbumModel->Equatable

Conforms To

CustomStringConvertible
Equatable

Initializers

init(result:​collection:​option:​)

public init(result: PHFetchResult<PHAsset>, collection: PHAssetCollection, option: PHFetchOptions)  

Create album info model.

Parameters

result PHFetch​Result<PHAsset>

Property use to get asset in album.

collection PHAsset​Collection

Property description the album.

option PHFetch​Options

Options that fetch album list.

Properties

title

public let title: String

Album title.

type

public let type: ADAlbumType

Album type.

count

public var count: Int  

Assets count contain in album.

result

public var result: PHFetchResult<PHAsset>

Property use to get asset in album.

collection

public let collection: PHAssetCollection

Property description the album.

option

public let option: PHFetchOptions

Options that fetch album list.

is​Camera​Roll

public let isCameraRoll: Bool

Indicate album is Recent album.

lastest​Asset

public var lastestAsset: PHAsset?  

Lastest asset in album.

description

public var description: String  

Operators

==

public static func == (lhs: ADAlbumModel, rhs: ADAlbumModel) -> Bool