mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Added save to gallery option - IOS only
This commit is contained in:
@ -95,7 +95,7 @@ export var takePicture = function (options): Promise<any> {
|
||||
}
|
||||
if (reqWidth && reqHeight) {
|
||||
listener = UIImagePickerControllerDelegateImpl.new().initWithCallbackAndOptions(resolve, { width: reqWidth, height: reqHeight, keepAspectRatio: keepAspectRatio, saveToGallery: saveToGallery });
|
||||
} if (saveToGallery) {
|
||||
} else if (saveToGallery) {
|
||||
listener = UIImagePickerControllerDelegateImpl.new().initWithCallbackAndOptions(resolve, { saveToGallery: saveToGallery });
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user