@@ -19,13 +19,13 @@ class UIImagePickerControllerDelegateImpl extends NSObject implements UIImagePic
1919 private _keepAspectRatio : boolean ;
2020 private _saveToGallery : boolean ;
2121
22- public initWithCallback ( callback : ( result ?) => void , errorCallback : ( result ?) => void ) : UIImagePickerControllerDelegateImpl {
22+ public initWithCallback ( callback : ( result ?) => void , errorCallback : ( result ?) => void ) : UIImagePickerControllerDelegateImpl {
2323 this . _callback = callback ;
2424 this . _errorCallback = errorCallback ;
2525 return this ;
2626 }
2727
28- public initWithCallbackAndOptions ( callback : ( result ?) => void , errorCallback : ( result ?) => void , options ?) : UIImagePickerControllerDelegateImpl {
28+ public initWithCallbackAndOptions ( callback : ( result ?) => void , errorCallback : ( result ?) => void , options ?) : UIImagePickerControllerDelegateImpl {
2929 this . _callback = callback ;
3030 this . _errorCallback = errorCallback ;
3131 if ( options ) {
@@ -151,10 +151,10 @@ export let takePicture = function (options): Promise<any> {
151151 resolve , reject , { width : reqWidth , height : reqHeight , keepAspectRatio : keepAspectRatio , saveToGallery : saveToGallery } ) ;
152152 } else if ( saveToGallery ) {
153153 listener = UIImagePickerControllerDelegateImpl . new ( ) . initWithCallbackAndOptions (
154- resolve , reject , { saveToGallery : saveToGallery , keepAspectRatio : keepAspectRatio } ) ;
154+ resolve , reject , { saveToGallery : saveToGallery , keepAspectRatio : keepAspectRatio } ) ;
155155 }
156156 else {
157- listener = UIImagePickerControllerDelegateImpl . new ( ) . initWithCallback ( resolve , reject ) ;
157+ listener = UIImagePickerControllerDelegateImpl . new ( ) . initWithCallback ( resolve , reject ) ;
158158 }
159159 imagePickerController . delegate = listener ;
160160
0 commit comments