Class
ADAssetBrowserController
public class ADAssetBrowserController: UIViewController
Controller to browser asset in big mode.
Relationships
Conforms To
UICollectionViewDataSource
UICollectionViewDelegateFlowLayout
UINavigationControllerDelegate
UIViewController
Properties
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()
open func didSelectsUpdate()
Called when return to thumbnail controller. Subclass can override to refresh thumbnail controller.
finishSelection()
open func finishSelection()
Called when finish selection. Subclass can override to do something.
didImageEditInfoUpdate(_:)
open func didImageEditInfoUpdate(_ info: ADImageEditInfo)
Called when image edit finished.
canSelectWithCurrentIndex()
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.
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)