awesome-cordova-plugins/dist/plugins/barcodescanner.d.ts
2016-02-07 16:12:13 -06:00

21 lines
596 B
TypeScript

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