-
Notifications
You must be signed in to change notification settings - Fork 37
/
WPNavigationMediaPickerViewController.h
70 lines (54 loc) · 2.7 KB
/
WPNavigationMediaPickerViewController.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
61
62
63
64
65
66
67
68
69
70
@import UIKit;
#import "WPMediaCollectionDataSource.h"
#import "WPMediaPickerOptions.h"
@class WPMediaPickerViewController;
@protocol WPMediaPickerViewControllerDelegate;
@interface WPNavigationMediaPickerViewController : UIViewController
/**
Init a WPNavigationMediaPickerViewController with the selection options
@param options an WPMediaPickerOption object
@return an initiated WPNavigationMediaPickerViewController with the designated options
*/
- (nonnull instancetype)initWithOptions:(nonnull WPMediaPickerOptions *)options;
@property (nonatomic, weak, nullable) id<WPMediaPickerViewControllerDelegate> delegate;
/**
The internal WPMediaPickerViewController that is used to display the media.
*/
@property (nonatomic, readonly, nonnull) WPMediaPickerViewController *mediaPicker;
/**
The object that acts as the data source of the media picker.
@Discussion
If no object is defined before the picker is show then the picker will use a shared data source that access the user media library.
*/
@property (nonatomic, weak, nullable) id<WPMediaCollectionDataSource> dataSource;
/**
Pushes a given ViewController into the internal UINavigationController. Useful for post-processing steps.
*/
- (void)showAfterViewController:(nonnull UIViewController *)viewController;
@property (nonatomic, strong, readonly) UICollectionViewFlowLayout * _Nonnull layout;
/**
A localized string that reflect the action that will be done when the picker is selected.
This string can contain a a placeholder for a numeric value that will indicate the number of media items selected.
If this is nil the default value will be used. The default value is 'Select %@'
*/
@property (nonatomic, copy, nullable) NSString *selectionActionTitle;
/**
A localized string that reflect the action that will be done when the user chooses to preview the selected assets.
This string can contain a a placeholder for a numeric value that will indicate the number of media items selected.
If this is nil the default value will be used. The default value is 'Preview %@'
*/
@property (nonatomic, copy, nullable) NSString *previewActionTitle;
/**
A localized string with the title for the cancel button
If this is nil the default value will be used. The default value is 'Cancel'
*/
@property (nonatomic, copy, nullable) NSString *cancelButtonTitle;
/**
If this property is set to NO the picker will not show the interface to display groups. The default value is YES.
*/
@property (nonatomic, assign) BOOL showGroupSelector;
/**
If this property is set the navigation start on the group selector otherwise it start directly on the default active group of the data source. The default value is YES.
*/
@property (nonatomic, assign) BOOL startOnGroupSelector;
@end