| // Copyright 2013 The Flutter Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #import <Foundation/Foundation.h> |
| #import <PhotosUI/PhotosUI.h> |
| |
| #import "FLTImagePickerImageUtil.h" |
| #import "FLTImagePickerMetaDataUtil.h" |
| #import "FLTImagePickerPhotoAssetUtil.h" |
| |
| NS_ASSUME_NONNULL_BEGIN |
| |
| /// Returns either the saved path, or an error. Both cannot be set. |
| typedef void (^FLTGetSavedPath)(NSString *_Nullable savedPath, FlutterError *_Nullable error); |
| |
| /*! |
| @class FLTPHPickerSaveImageToPathOperation |
| |
| @brief The FLTPHPickerSaveImageToPathOperation class |
| |
| @discussion This class was implemented to handle saved image paths and populate the pathList |
| with the final result by using GetSavedPath type block. |
| |
| @superclass SuperClass: NSOperation\n |
| @helps It helps FLTImagePickerPlugin class. |
| */ |
| @interface FLTPHPickerSaveImageToPathOperation : NSOperation |
| |
| - (instancetype)initWithResult:(PHPickerResult *)result |
| maxHeight:(NSNumber *)maxHeight |
| maxWidth:(NSNumber *)maxWidth |
| desiredImageQuality:(NSNumber *)desiredImageQuality |
| fullMetadata:(BOOL)fullMetadata |
| savedPathBlock:(FLTGetSavedPath)savedPathBlock API_AVAILABLE(ios(14)); |
| |
| @end |
| |
| NS_ASSUME_NONNULL_END |