-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathELCImagePickerController.h
61 lines (48 loc) · 2.16 KB
/
ELCImagePickerController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// ELCImagePickerController.h
// ELCImagePickerDemo
//
// Created by ELC on 9/9/10.
// Copyright 2010 ELC Technologies. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ELCAssetSelectionDelegate.h"
@class ELCImagePickerController;
@class ELCAlbumPickerController;
@protocol ELCImagePickerControllerDelegate <UINavigationControllerDelegate>
/**
* Called with the picker the images were selected from, as well as an array of dictionary's
* containing keys for ALAssetPropertyLocation, ALAssetPropertyType,
* UIImagePickerControllerOriginalImage, and UIImagePickerControllerReferenceURL.
* @param picker
* @param info An NSArray containing dictionary's with the key UIImagePickerControllerOriginalImage, which is a rotated, and sized for the screen 'default representation' of the image selected. If you want to get the original image, use the UIImagePickerControllerReferenceURL key.
*/
- (void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPickingMediaWithInfo:(NSArray *)info;
/**
* Called when image selection was cancelled, by tapping the 'Cancel' BarButtonItem.
*/
- (void)elcImagePickerControllerDidCancel:(ELCImagePickerController *)picker;
@end
@interface ELCImagePickerController : UINavigationController <ELCAssetSelectionDelegate>
@property (nonatomic, weak) id<ELCImagePickerControllerDelegate> imagePickerDelegate;
@property (nonatomic, assign) NSInteger maximumImagesCount;
@property (nonatomic, assign) BOOL onOrder;
/**
* An array indicating the media types to be accessed by the media picker controller.
* Same usage as for UIImagePickerController.
*/
@property (nonatomic, strong) NSArray *mediaTypes;
/**
* YES if the picker should return a UIImage along with other meta info (this is the default),
* NO if the picker should return the assetURL and other meta info, but no actual UIImage.
*/
@property (nonatomic, assign) BOOL returnsImage;
/**
* YES if the picker should return the original image,
* or NO for an image suitable for displaying full screen on the device.
* Does nothing if `returnsImage` is NO.
*/
@property (nonatomic, assign) BOOL returnsOriginalImage;
- (id)initImagePicker;
- (void)cancelImagePicker;
@end