-
Notifications
You must be signed in to change notification settings - Fork 37
/
WPInputMediaPickerViewController.h
48 lines (36 loc) · 1.5 KB
/
WPInputMediaPickerViewController.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
#import <UIKit/UIKit.h>
#import "WPMediaPickerViewController.h"
/**
A class to be used as an input view for an UITextView or UITextField.
The mediaToolbar property provides a toolbar that can be used as the inputAccessoryView for this inputView.
*/
@interface WPInputMediaPickerViewController : UIViewController
/**
Init a WPInputMediaPickerViewController with the selection options
@param options an WPMediaPickerOption object
@return an initiated WPInputMediaPickerViewController with the designated options
*/
- (instancetype _Nonnull )initWithOptions:(nonnull WPMediaPickerOptions *)options;
/**
The delegate for the WPMediaPickerViewController events
*/
@property (nonatomic, weak, nullable) id<WPMediaPickerViewControllerDelegate> mediaPickerDelegate;
/**
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;
/**
The internal WPMediaPickerViewController that is used to display the media.
*/
@property (nonatomic, readonly, nonnull) WPMediaPickerViewController *mediaPicker;
/**
A toolbar that can be used as the inputAccessoryView for this inputView.
*/
@property (nonatomic, readonly, nonnull) UIToolbar *mediaToolbar;
/**
* Presents the system image / video capture view controller, presented from `viewControllerToUseToPresent`.
*/
- (void)showCapture;
@end