From 45108c4c18a51ad290b03b6bb7e06c46d26c7305 Mon Sep 17 00:00:00 2001 From: Dave Alden Date: Fri, 12 May 2017 08:53:56 +0100 Subject: [PATCH] fix(diagnostic): fix Cordova decorator in camera API (#1527) --- src/@ionic-native/plugins/diagnostic/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/@ionic-native/plugins/diagnostic/index.ts b/src/@ionic-native/plugins/diagnostic/index.ts index 017913d83..4937ff72c 100644 --- a/src/@ionic-native/plugins/diagnostic/index.ts +++ b/src/@ionic-native/plugins/diagnostic/index.ts @@ -148,7 +148,7 @@ export class Diagnostic extends IonicNativePlugin { * cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true. * @returns {Promise} */ - @Cordova({ successIndex: 1, errorIndex: 2 }) + @Cordova({ callbackOrder: 'reverse' }) isCameraAvailable( externalStorage?: boolean ): Promise { return; } /** @@ -257,7 +257,7 @@ export class Diagnostic extends IonicNativePlugin { * cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true. * @returns {Promise} */ - @Cordova({ platforms: ['Android', 'iOS'], successIndex: 1, errorIndex: 2 }) + @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) isCameraAuthorized( externalStorage?: boolean ): Promise { return; } /** @@ -266,7 +266,7 @@ export class Diagnostic extends IonicNativePlugin { * cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true. * @returns {Promise} */ - @Cordova({ platforms: ['Android', 'iOS'], successIndex: 1, errorIndex: 2 }) + @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) getCameraAuthorizationStatus( externalStorage?: boolean ): Promise { return; } /** @@ -275,7 +275,7 @@ export class Diagnostic extends IonicNativePlugin { * cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true. * @returns {Promise} */ - @Cordova({ platforms: ['Android', 'iOS'], successIndex: 1, errorIndex: 2 }) + @Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' }) requestCameraAuthorization( externalStorage?: boolean ): Promise { return; } /**