ADPhotoKit Documentation

Class ADThumbnail​View​Controller

public class ADThumbnailViewController: UIViewController  

Controller to display assets in album.

%215 ADThumbnailViewController ADThumbnailViewController UINavigationControllerDelegate UINavigationControllerDelegate ADThumbnailViewController->UINavigationControllerDelegate UICollectionViewDataSource UICollectionViewDataSource ADThumbnailViewController->UICollectionViewDataSource UICollectionViewDelegateFlowLayout UICollectionViewDelegateFlowLayout ADThumbnailViewController->UICollectionViewDelegateFlowLayout UIViewController UIViewController ADThumbnailViewController->UIViewController ADAssetBrowserTransitionContextTo ADAssetBrowserTransitionContextTo ADThumbnailViewController->ADAssetBrowserTransitionContextTo UIImagePickerControllerDelegate UIImagePickerControllerDelegate ADThumbnailViewController->UIImagePickerControllerDelegate

Conforms To

UICollectionViewDataSource
UICollectionViewDelegateFlowLayout
UIImagePickerControllerDelegate
UINavigationControllerDelegate
UIViewController

Properties

collection​View

public var collectionView: UICollectionView! 

View to display asset.

data​Source

public var dataSource: ADAssetListDataSource! 

The data source of album assets.

select​Album​Block

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

Return back to albumListController when ADPickerStyle is normal

preferred​Status​Bar​Style

public override var preferredStatusBarStyle: UIStatusBarStyle  

Methods

view​Did​Load()

public override func viewDidLoad()  

view​Will​Appear(_:​)

public override func viewWillAppear(_ animated: Bool)  

view​Will​Disappear(_:​)

public override func viewWillDisappear(_ animated: Bool)  

collection​View(_:​layout:​minimum​Interitem​Spacing​For​Section​At:​)

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

collection​View(_:​layout:​minimum​Line​Spacing​For​Section​At:​)

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

collection​View(_:​layout:​inset​For​Section​At:​)

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

collection​View(_:​layout:​size​For​Item​At:​)

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

collection​View(_:​number​OfItems​InSection:​)

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

collection​View(_:​cell​For​Item​At:​)

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

collection​View(_:​will​Display:​for​Item​At:​)

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

collection​View(_:​did​Select​Item​At:​)

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

image​Picker​Controller(_:​did​Finish​Picking​Media​With​Info:​)

public func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any])