ADPhotoKit Documentation

Class ADAsset​Browser​Controller

public class ADAssetBrowserController: UIViewController  

Controller to browser asset in big mode.

%169 ADAssetBrowserController ADAssetBrowserController ADAssetBrowserInteractiveTransitionDelegate ADAssetBrowserInteractiveTransitionDelegate ADAssetBrowserController->ADAssetBrowserInteractiveTransitionDelegate UICollectionViewDelegateFlowLayout UICollectionViewDelegateFlowLayout ADAssetBrowserController->UICollectionViewDelegateFlowLayout ADAssetBrowserTransitionContextFrom ADAssetBrowserTransitionContextFrom ADAssetBrowserController->ADAssetBrowserTransitionContextFrom UINavigationControllerDelegate UINavigationControllerDelegate ADAssetBrowserController->UINavigationControllerDelegate UIViewController UIViewController ADAssetBrowserController->UIViewController UICollectionViewDataSource UICollectionViewDataSource ADAssetBrowserController->UICollectionViewDataSource ADAssetModelBrowserController ADAssetModelBrowserController ADAssetModelBrowserController->ADAssetBrowserController

Conforms To

UICollectionViewDataSource
UICollectionViewDelegateFlowLayout
UINavigationControllerDelegate
UIViewController

Properties

data​Source

public var dataSource: ADAssetBrowserDataSource! 

The data source of browser assets.

collection​View

public var collectionView: UICollectionView! 

View to display asset.

prefers​Status​Bar​Hidden

public override var prefersStatusBarHidden: Bool  

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)  

did​Selects​Update()

open func didSelectsUpdate()  

Called when return to thumbnail controller. Subclass can override to refresh thumbnail controller.

finish​Selection()

open func finishSelection()  

Called when finish selection. Subclass can override to do something.

did​Image​Edit​Info​Update(_:​)

open func didImageEditInfoUpdate(_ info: ADImageEditInfo)  

Called when image edit finished.

can​Select​With​Current​Index()

open func canSelectWithCurrentIndex() -> Bool  

Indicated current asset can select or not. Subclass can override to do something.

Returns

If true, means you can select. Otherwise can't.

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​End​Displaying:​for​Item​At:​)

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

scroll​View​Did​Scroll(_:​)

public func scrollViewDidScroll(_ scrollView: UIScrollView)  

navigation​Controller(_:​animation​Controller​For:​from:​to:​)

public func navigationController(_ navigationController: UINavigationController, animationControllerFor operation: UINavigationController.Operation, from fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning?  

navigation​Controller(_:​interaction​Controller​For:​)

public func navigationController(_ navigationController: UINavigationController, interactionControllerFor animationController: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning?