Skip to content

ADAlbumModel

duzexu edited this page Jun 1, 2021 · 2 revisions

ADAlbumModel

Model contain album info.

public class ADAlbumModel: Equatable 

Inheritance

CustomStringConvertible, Equatable

Initializers

init(result:collection:option:)

Create album info model.

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

Parameters

  • result: Property use to get asset in album.
  • collection: Property description the album.
  • option: Options that fetch album list.

Properties

title

Album title.

public let title: String

type

Album type.

public let type: ADAlbumType

count

Assets count contain in album.

public var count: Int 

result

Property use to get asset in album.

public var result: PHFetchResult<PHAsset>

collection

Property description the album.

public let collection: PHAssetCollection

option

Options that fetch album list.

public let option: PHFetchOptions

isCameraRoll

Indicate album is Recent album.

public let isCameraRoll: Bool

lastestAsset

Lastest asset in album.

public var lastestAsset: PHAsset? 

description

public var description: String 

Operators

==

public static func == (lhs: ADAlbumModel, rhs: ADAlbumModel) -> Bool 
Types
Protocols
Global Typealiases
Operators
Extensions

Clone this wiki locally