FWImagePickerPreviewControllerDelegate
@protocol FWImagePickerPreviewControllerDelegate <NSObject>
@optional
/// 完成选中图片回调,未实现时自动转发给当前imagePickerController
- (void)imagePickerPreviewController:(FWImagePickerPreviewController *)imagePickerPreviewController didFinishPickingImageWithImagesAssetArray:(NSArray<FWAsset *> *)imagesAssetArray;
/// 即将选中图片
- (void)imagePickerPreviewController:(FWImagePickerPreviewController *)imagePickerPreviewController willCheckImageAtIndex:(NSInteger)index;
/// 已经选中图片
- (void)imagePickerPreviewController:(FWImagePickerPreviewController *)imagePickerPreviewController didCheckImageAtIndex:(NSInteger)index;
/// 即将取消选中图片
- (void)imagePickerPreviewController:(FWImagePickerPreviewController *)imagePickerPreviewController willUncheckImageAtIndex:(NSInteger)index;
/// 已经取消选中图片
- (void)imagePickerPreviewController:(FWImagePickerPreviewController *)imagePickerPreviewController didUncheckImageAtIndex:(NSInteger)index;
/// 选中数量变化时调用,仅多选有效
- (void)imagePickerPreviewController:(FWImagePickerPreviewController *)imagePickerPreviewController willChangeCheckedCount:(NSInteger)checkedCount;
/// 即将需要显示 Loading 时调用
- (void)imagePickerPreviewControllerWillStartLoading:(FWImagePickerPreviewController *)imagePickerPreviewController;
/// 即将需要隐藏 Loading 时调用
- (void)imagePickerPreviewControllerDidFinishLoading:(FWImagePickerPreviewController *)imagePickerPreviewController;
/// 已经选中数量超过最大选择数量时被调用,默认弹窗提示
- (void)imagePickerPreviewControllerWillShowExceed:(FWImagePickerPreviewController *)imagePickerPreviewController;
/// 图片预览界面关闭返回时被调用
- (void)imagePickerPreviewControllerDidCancel:(FWImagePickerPreviewController *)imagePickerPreviewController;
/// 自定义编辑按钮点击事件,启用编辑时生效,未实现时使用图片裁剪控制器
- (void)imagePickerPreviewController:(FWImagePickerPreviewController *)imagePickerPreviewController willEditImageAtIndex:(NSInteger)index;
/// 自定义图片裁剪控制器,启用编辑时生效,未实现时使用默认配置
- (FWImageCropController *)imageCropControllerForPreviewController:(FWImagePickerPreviewController *)previewController image:(UIImage *)image;
/// 自定义编辑cell展示,cellForRow自动调用
- (void)imagePickerPreviewController:(FWImagePickerPreviewController *)imagePickerPreviewController customCell:(FWImagePickerPreviewCollectionCell *)cell atIndexPath:(NSIndexPath *)indexPath;
@end
Undocumented
-
完成选中图片回调,未实现时自动转发给当前imagePickerController
Declaration
Objective-C
- (void)imagePickerPreviewController:(nonnull FWImagePickerPreviewController *) imagePickerPreviewController didFinishPickingImageWithImagesAssetArray: (nonnull NSArray<FWAsset *> *)imagesAssetArray;
-
即将选中图片
Declaration
Objective-C
- (void)imagePickerPreviewController:(nonnull FWImagePickerPreviewController *) imagePickerPreviewController willCheckImageAtIndex:(NSInteger)index;
-
已经选中图片
Declaration
Objective-C
- (void)imagePickerPreviewController:(nonnull FWImagePickerPreviewController *) imagePickerPreviewController didCheckImageAtIndex:(NSInteger)index;
-
即将取消选中图片
Declaration
Objective-C
- (void)imagePickerPreviewController:(nonnull FWImagePickerPreviewController *) imagePickerPreviewController willUncheckImageAtIndex:(NSInteger)index;
-
已经取消选中图片
Declaration
Objective-C
- (void)imagePickerPreviewController:(nonnull FWImagePickerPreviewController *) imagePickerPreviewController didUncheckImageAtIndex:(NSInteger)index;
-
选中数量变化时调用,仅多选有效
Declaration
Objective-C
- (void)imagePickerPreviewController:(nonnull FWImagePickerPreviewController *) imagePickerPreviewController willChangeCheckedCount:(NSInteger)checkedCount;
-
即将需要显示 Loading 时调用
Declaration
Objective-C
- (void)imagePickerPreviewControllerWillStartLoading: (nonnull FWImagePickerPreviewController *)imagePickerPreviewController;
-
即将需要隐藏 Loading 时调用
Declaration
Objective-C
- (void)imagePickerPreviewControllerDidFinishLoading: (nonnull FWImagePickerPreviewController *)imagePickerPreviewController;
-
已经选中数量超过最大选择数量时被调用,默认弹窗提示
Declaration
Objective-C
- (void)imagePickerPreviewControllerWillShowExceed: (nonnull FWImagePickerPreviewController *)imagePickerPreviewController;
-
图片预览界面关闭返回时被调用
Declaration
Objective-C
- (void)imagePickerPreviewControllerDidCancel: (nonnull FWImagePickerPreviewController *)imagePickerPreviewController;
-
自定义编辑按钮点击事件,启用编辑时生效,未实现时使用图片裁剪控制器
Declaration
Objective-C
- (void)imagePickerPreviewController:(nonnull FWImagePickerPreviewController *) imagePickerPreviewController willEditImageAtIndex:(NSInteger)index;
-
自定义图片裁剪控制器,启用编辑时生效,未实现时使用默认配置
Declaration
Objective-C
- (nonnull FWImageCropController *) imageCropControllerForPreviewController: (nonnull FWImagePickerPreviewController *)previewController image:(nonnull UIImage *)image;
-
自定义编辑cell展示,cellForRow自动调用
Declaration
Objective-C
- (void)imagePickerPreviewController:(nonnull FWImagePickerPreviewController *) imagePickerPreviewController customCell: (nonnull FWImagePickerPreviewCollectionCell *)cell atIndexPath:(nonnull NSIndexPath *)indexPath;