Skip to content

ADAssetBrowserController

duzexu edited this page Sep 18, 2021 · 3 revisions

ADAssetBrowserController

Controller to browser asset in big mode.

public class ADAssetBrowserController: UIViewController 

Inheritance

ADAssetBrowserInteractiveTransitionDelegate, ADAssetBrowserTransitionContextFrom, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UINavigationControllerDelegate, UIViewController

Properties

dataSource

The data source of browser assets.

public var dataSource: ADAssetBrowserDataSource!

collectionView

View to display asset.

public var collectionView: UICollectionView!

prefersStatusBarHidden

public override var prefersStatusBarHidden: Bool 

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) 

didSelectsUpdate()

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

open func didSelectsUpdate() 

finishSelection()

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

open func finishSelection() 

didImageEditInfoUpdate(_:)

Module_ImageEdit

Called when image edit finished.

open func didImageEditInfoUpdate(_ info: ADImageEditInfo) 

canSelectWithCurrentIndex()

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

open func canSelectWithCurrentIndex() -> Bool 

Returns

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

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(_:didEndDisplaying:forItemAt:)

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

scrollViewDidScroll(_:)

public func scrollViewDidScroll(_ scrollView: UIScrollView) 

navigationController(_:animationControllerFor:from:to:)

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

navigationController(_:interactionControllerFor:)

public func navigationController(_ navigationController: UINavigationController, interactionControllerFor animationController: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? 
Types
Protocols
Global Typealiases
Operators
Extensions

Clone this wiki locally