chore(CDVCamera): refactor code when returning image after getting the location (#969)

- Renamed property `data` to `tempImageDataForLocationManager` since it is only used when getting location data for an image after capturing it
- Renamed method `imagePickerControllerReturnImageResult` to `returnImageAfterLocationUpdate` since it is only called, when a location was fetched, or an error ocurred while fetching one.
This commit is contained in:
Manuel Beck
2026-07-30 08:49:41 +02:00
committed by GitHub
parent 2470f8d970
commit a7cd05b20c
2 changed files with 44 additions and 39 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ typedef NSUInteger CDVMediaType;
@property (strong) CDVUIImagePickerController* cdvUIImagePickerController;
@property (strong) NSMutableDictionary *metadata;
@property (strong, nonatomic) CLLocationManager *locationManager;
@property (strong) NSData* data;
@property (strong) NSData* tempImageDataForLocationManager;
- (void)takePicture:(CDVInvokedUrlCommand*)command;
- (void)cleanup:(CDVInvokedUrlCommand*)command;