3
0
mirror of https://github.com/danielsogl/awesome-cordova-plugins.git synced 2025-03-13 22:41:04 +08:00

21 lines
596 B
TypeScript
Raw Normal View History

2016-02-02 15:35:45 +01:00
/**
* The Barcode Scanner Plugin opens a camera view and automatically scans a barcode, returning the data back to you.
*
2016-02-07 16:12:13 -06:00
* Requires Cordova plugin: `phonegap-plugin-barcodescanner`. For more info, please see the [BarcodeScanner plugin docs](https://github.com/phonegap/phonegap-plugin-barcodescanner).
2016-02-02 15:35:45 +01:00
*
* @usage
* ```js
2016-02-07 16:12:13 -06:00
* BarcodeScanner.scan().then((barcodeData) => {
2016-02-02 15:35:45 +01:00
* // Success! Barcode data is here
* }, (err) => {
* // An error occurred
* });
* ```
*/
export declare class BarcodeScanner {
2016-02-07 16:12:13 -06:00
/**
* Open the barcode scanner.
*/
static scan(): Promise<any>;
2016-02-02 15:35:45 +01:00
}