Skip to content

ADThumbnailViewController

duzexu edited this page Sep 18, 2021 · 3 revisions

ADThumbnailViewController

Controller to display assets in album.

public class ADThumbnailViewController: UIViewController 

Inheritance

ADAssetBrowserTransitionContextTo, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UIViewController

Properties

collectionView

View to display asset.

public var collectionView: UICollectionView!

dataSource

The data source of album assets.

public var dataSource: ADAssetListDataSource!

selectAlbumBlock

Return back to albumListController when ADPickerStyle is normal

public var selectAlbumBlock: (([ADSelectAssetModel]) -> Void)?

preferredStatusBarStyle

public override var preferredStatusBarStyle: UIStatusBarStyle 

Methods

viewDidLoad()

public override func viewDidLoad() 

viewWillAppear(_:)

public override func viewWillAppear(_ animated: Bool) 

viewWillDisappear(_:)

public override func viewWillDisappear(_ animated: Bool) 

collectionView(_:layout:minimumInteritemSpacingForSectionAt:)

public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat 

collectionView(_:layout:minimumLineSpacingForSectionAt:)

public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat 

collectionView(_:layout:insetForSectionAt:)

public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets 

collectionView(_:layout:sizeForItemAt:)

public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize 

collectionView(_:numberOfItemsInSection:)

public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int 

collectionView(_:cellForItemAt:)

public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell 

collectionView(_:willDisplay:forItemAt:)

public func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) 

collectionView(_:didSelectItemAt:)

public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) 

imagePickerController(_:didFinishPickingMediaWithInfo:)

public func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) 
Types
Protocols
Global Typealiases
Operators
Extensions

Clone this wiki locally