Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit e8333f8

Browse files
committed
Adds declaration comments.
1 parent bd955e9 commit e8333f8

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

packages/image_picker/image_picker/ios/Classes/FLTImagePickerPlugin_Test.h

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,37 @@
66

77
#import <image_picker/FLTImagePickerPlugin.h>
88

9-
/// Methods exposed for unit testing.
9+
/** Methods exposed for unit testing. */
1010
@interface FLTImagePickerPlugin ()
1111

12+
/** The Flutter result callback use to report results back to Flutter App. */
1213
@property(copy, nonatomic) FlutterResult result;
14+
15+
/**
16+
* Applies NSMutableArray on the FLutterResult.
17+
*
18+
* NSString must be returned by FlutterResult if the single image
19+
* mode is active. It is checked by maxImagesAllowed and
20+
* returns the first object of the pathlist.
21+
*
22+
* NSMutableArray must be returned by FlutterResult if the multi-image
23+
* mode is active. After the pathlist count is checked then it returns
24+
* the pathlist.
25+
*
26+
* @param pathList that should be applied to FlutterResult.
27+
*/
1328
- (void)handleSavedPathList:(NSArray *)pathList;
14-
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker;
29+
30+
/**
31+
* Tells the delegate that the user cancelled the pick operation.
32+
*
33+
* Your delegate’s implementation of this method should dismiss the picker view
34+
* by calling the dismissModalViewControllerAnimated: method of the parent
35+
* view controller.
36+
*
37+
* Implementation of this method is optional, but expected.
38+
*
39+
* @param picker The controller object managing the image picker interface.
40+
*/- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker;
1541

1642
@end

0 commit comments

Comments
 (0)