Skip to content

Commit 10eb3ee

Browse files
Inconspicuouslyihadeed
authored andcommitted
feat(qr-scanner): added destroy method (#1916) (#1971)
fix(qr-scanner): added destroy method (#1916)
1 parent e684db4 commit 10eb3ee

File tree

1 file changed

+7
-0
lines changed
  • src/@ionic-native/plugins/qr-scanner

1 file changed

+7
-0
lines changed

src/@ionic-native/plugins/qr-scanner/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@ export class QRScanner extends IonicNativePlugin {
159159
})
160160
enableLight(): Promise<QRScannerStatus> { return; }
161161

162+
/**
163+
* Destroy the scanner instance.
164+
* @returns {Promise<QRScannerStatus>}
165+
*/
166+
@Cordova()
167+
destroy(): Promise<QRScannerStatus> { return; }
168+
162169
/**
163170
* Disable the device's light.
164171
* @return {Promise<QRScannerStatus>}

0 commit comments

Comments
 (0)