ImageAlbumControllerDelegate
@MainActor
@objc
public protocol ImageAlbumControllerDelegate
相册列表事件代理
-
需提供 ImagePickerController 用于展示九宫格图片列表
Declaration
Swift
@objc @MainActor optional func imagePickerController(for albumController: ImageAlbumController) -> ImagePickerController
-
点击相簿里某一行时被调用,未实现时默认打开imagePickerController
Declaration
Swift
@objc @MainActor optional func albumController(_ albumController: ImageAlbumController, didSelect assetsGroup: AssetGroup)
-
自定义相册列表cell展示,cellForRow自动调用
Declaration
Swift
@objc @MainActor optional func albumController(_ albumController: ImageAlbumController, customCell cell: ImageAlbumTableCell, at indexPath: IndexPath)
-
取消查看相册列表后被调用,未实现时自动转发给当前imagePickerController
Declaration
Swift
@objc @MainActor optional func albumControllerDidCancel(_ albumController: ImageAlbumController)
-
即将需要显示 Loading 时调用,可自定义Loading效果
Declaration
Swift
@objc @MainActor optional func albumControllerWillStartLoading(_ albumController: ImageAlbumController)
-
需要隐藏 Loading 时调用,可自定义Loading效果
Declaration
Swift
@objc @MainActor optional func albumControllerDidFinishLoading(_ albumController: ImageAlbumController)
-
相册列表未授权时调用,可自定义空界面等
Declaration
Swift
@objc @MainActor optional func albumControllerWillShowDenied(_ albumController: ImageAlbumController)
-
相册列表为空时调用,可自定义空界面等
Declaration
Swift
@objc @MainActor optional func albumControllerWillShowEmpty(_ albumController: ImageAlbumController)