diff options
author | Struan Donald <struan@exo.org.uk> | 2013-07-10 15:17:41 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-07-10 15:17:41 +0100 |
commit | 8c81bd47bbe3ed65a55a2c5fd376bfd726bd6777 (patch) | |
tree | 4076c08e5e85159da272ee455de412a1ae92679b /iPhone/CordovaLib/Classes/CDVCamera.h | |
parent | 7d57c4bfa201c12885b26b186ebac4b3028d570b (diff) |
upgrade iOS to phonegap 2.9
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 |