mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Added save to gallery option - IOS only
This commit is contained in:
@ -95,7 +95,9 @@ 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) {
|
||||
listener = UIImagePickerControllerDelegateImpl.new().initWithCallbackAndOptions(resolve, { saveToGallery: saveToGallery });
|
||||
}
|
||||
else {
|
||||
listener = UIImagePickerControllerDelegateImpl.new().initWithCallback(resolve);
|
||||
}
|
||||
|
Reference in New Issue
Block a user