Skip to content

Commit

Permalink
fix(diagnostic): fix Cordova decorator in camera API (#1527)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpa99c authored and ihadeed committed May 12, 2017
1 parent 17e166d commit 45108c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/@ionic-native/plugins/diagnostic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class Diagnostic extends IonicNativePlugin {
* cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true.
* @returns {Promise<any>}
*/
@Cordova({ successIndex: 1, errorIndex: 2 })
@Cordova({ callbackOrder: 'reverse' })
isCameraAvailable( externalStorage?: boolean ): Promise<any> { return; }

/**
Expand Down Expand Up @@ -257,7 +257,7 @@ export class Diagnostic extends IonicNativePlugin {
* cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true.
* @returns {Promise<any>}
*/
@Cordova({ platforms: ['Android', 'iOS'], successIndex: 1, errorIndex: 2 })
@Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' })
isCameraAuthorized( externalStorage?: boolean ): Promise<any> { return; }

/**
Expand All @@ -266,7 +266,7 @@ export class Diagnostic extends IonicNativePlugin {
* cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true.
* @returns {Promise<any>}
*/
@Cordova({ platforms: ['Android', 'iOS'], successIndex: 1, errorIndex: 2 })
@Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' })
getCameraAuthorizationStatus( externalStorage?: boolean ): Promise<any> { return; }

/**
Expand All @@ -275,7 +275,7 @@ export class Diagnostic extends IonicNativePlugin {
* cordova-plugin-camera@2.2+ requires both of these permissions. Defaults to true.
* @returns {Promise<any>}
*/
@Cordova({ platforms: ['Android', 'iOS'], successIndex: 1, errorIndex: 2 })
@Cordova({ platforms: ['Android', 'iOS'], callbackOrder: 'reverse' })
requestCameraAuthorization( externalStorage?: boolean ): Promise<any> { return; }

/**
Expand Down

0 comments on commit 45108c4

Please sign in to comment.