ImagePickerPreviewControllerDelegate
@MainActor
@objc
public protocol ImagePickerPreviewControllerDelegate
Undocumented
-
完成选中图片回调,未实现时自动转发给当前imagePickerController
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewController(_ imagePickerPreviewController: ImagePickerPreviewController, didFinishPickingImage imagesAssetArray: [Asset])
-
即将选中图片
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewController(_ imagePickerPreviewController: ImagePickerPreviewController, willCheckImageAt index: Int)
-
已经选中图片
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewController(_ imagePickerPreviewController: ImagePickerPreviewController, didCheckImageAt index: Int)
-
即将取消选中图片
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewController(_ imagePickerPreviewController: ImagePickerPreviewController, willUncheckImageAt index: Int)
-
已经取消选中图片
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewController(_ imagePickerPreviewController: ImagePickerPreviewController, didUncheckImageAt index: Int)
-
选中数量变化时调用,仅多选有效
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewController(_ imagePickerPreviewController: ImagePickerPreviewController, willChangeCheckedCount checkedCount: Int)
-
即将需要显示 Loading 时调用
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewControllerWillStartLoading(_ imagePickerPreviewController: ImagePickerPreviewController)
-
即将需要隐藏 Loading 时调用
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewControllerDidFinishLoading(_ imagePickerPreviewController: ImagePickerPreviewController)
-
已经选中数量超过最大选择数量时被调用,默认弹窗提示
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewControllerWillShowExceed(_ imagePickerPreviewController: ImagePickerPreviewController)
-
图片预览界面关闭返回时被调用
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewControllerDidCancel(_ imagePickerPreviewController: ImagePickerPreviewController)
-
自定义编辑按钮点击事件,启用编辑时生效,未实现时使用图片裁剪控制器
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewController(_ imagePickerPreviewController: ImagePickerPreviewController, willEditImageAt index: Int)
-
自定义图片裁剪控制器,启用编辑时生效,未实现时使用默认配置
Declaration
Swift
@objc @MainActor optional func imageCropController(for imagePickerPreviewController: ImagePickerPreviewController, image: UIImage) -> ImageCropController
-
自定义编辑cell展示,cellForRow自动调用
Declaration
Swift
@objc @MainActor optional func imagePickerPreviewController(_ imagePickerPreviewController: ImagePickerPreviewController, customCell cell: ImagePickerPreviewCollectionCell, at indexPath: IndexPath)