Skip to content

Commit

Permalink
feat(qr-scanner): added destroy method (#1916) (#1971)
Browse files Browse the repository at this point in the history
fix(qr-scanner): added destroy method (#1916)
  • Loading branch information
Inconspicuously authored and ihadeed committed Sep 27, 2017
1 parent e684db4 commit 10eb3ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/@ionic-native/plugins/qr-scanner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ export class QRScanner extends IonicNativePlugin {
})
enableLight(): Promise<QRScannerStatus> { return; }

/**
* Destroy the scanner instance.
* @returns {Promise<QRScannerStatus>}
*/
@Cordova()
destroy(): Promise<QRScannerStatus> { return; }

/**
* Disable the device's light.
* @return {Promise<QRScannerStatus>}
Expand Down

0 comments on commit 10eb3ee

Please sign in to comment.