FWImagePickerPluginImpl


@interface FWImagePickerPluginImpl : NSObject <FWImagePickerPlugin>

默认图片选取插件

  • 单例模式

    Declaration

    Objective-C

    @property (class, nonatomic, readonly) FWImagePickerPluginImpl *_Nonnull sharedInstance;
  • 是否禁用iOS14+PHPickerViewController(支持多选),默认NO;设为YES后始终使用UIImagePickerController(仅支持单选)

    Declaration

    Objective-C

    @property (nonatomic) BOOL photoPickerDisabled;
  • 编辑单张图片时是否启用自定义裁剪控制器,默认NO,使用系统方式

    Declaration

    Objective-C

    @property (nonatomic) BOOL cropControllerEnabled;
  • 自定义图片裁剪控制器句柄,启用自定义裁剪后生效

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) FWImageCropController *_Nonnull (^)(UIImage *_Nonnull __strong) cropControllerBlock;
  • 图片选取全局自定义句柄,show方法自动调用

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) void (^) (__kindof UIViewController *_Nonnull __strong) customBlock;