diff options
Diffstat (limited to 'iPhone/CordovaLib/Classes/CDVCamera.h')
-rwxr-xr-x | iPhone/CordovaLib/Classes/CDVCamera.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/iPhone/CordovaLib/Classes/CDVCamera.h b/iPhone/CordovaLib/Classes/CDVCamera.h index 204d25f..2932e3b 100755 --- a/iPhone/CordovaLib/Classes/CDVCamera.h +++ b/iPhone/CordovaLib/Classes/CDVCamera.h @@ -18,6 +18,8 @@ */ #import <Foundation/Foundation.h> +#import <CoreLocation/CoreLocation.h> +#import <CoreLocation/CLLocationManager.h> #import "CDVPlugin.h" enum CDVDestinationType { @@ -61,11 +63,15 @@ typedef NSUInteger CDVMediaType; // ======================================================================= // @interface CDVCamera : CDVPlugin <UIImagePickerControllerDelegate, - UINavigationControllerDelegate, - UIPopoverControllerDelegate> + UINavigationControllerDelegate, + UIPopoverControllerDelegate, + CLLocationManagerDelegate> {} @property (strong) CDVCameraPicker* pickerController; +@property (strong) NSMutableDictionary *metadata; +@property (strong, nonatomic) CLLocationManager *locationManager; +@property (strong) NSData* data; /* * getPicture @@ -85,8 +91,12 @@ typedef NSUInteger CDVMediaType; - (void)imagePickerController:(UIImagePickerController*)picker didFinishPickingMediaWithInfo:(NSDictionary*)info; - (void)imagePickerController:(UIImagePickerController*)picker didFinishPickingImage:(UIImage*)image editingInfo:(NSDictionary*)editingInfo; - (void)imagePickerControllerDidCancel:(UIImagePickerController*)picker; +- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated; - (UIImage*)imageByScalingAndCroppingForSize:(UIImage*)anImage toSize:(CGSize)targetSize; - (UIImage*)imageByScalingNotCroppingForSize:(UIImage*)anImage toSize:(CGSize)frameSize; - (UIImage*)imageCorrectedForCaptureOrientation:(UIImage*)anImage; +- (void)locationManager:(CLLocationManager*)manager didUpdateToLocation:(CLLocation*)newLocation fromLocation:(CLLocation*)oldLocation; +- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error; + @end |