mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
parent
22ab575dd0
commit
95e256293f
@ -38,6 +38,7 @@ export class BarcodeScanner {
|
||||
};
|
||||
/**
|
||||
* Open the barcode scanner.
|
||||
* @param options {Object} Optional options to pass to the scanner
|
||||
* @return Returns a Promise that resolves with scanner data, or rejects with an error.
|
||||
*/
|
||||
@Cordova({
|
||||
@ -48,8 +49,8 @@ export class BarcodeScanner {
|
||||
/**
|
||||
* Encodes data into a barcode.
|
||||
* NOTE: not well supported on Android
|
||||
* @param type
|
||||
* @param data
|
||||
* @param type {string} Type of encoding
|
||||
* @param data {any} Data to encode
|
||||
*/
|
||||
@Cordova()
|
||||
static encode(type: string, data: any): Promise<any> { return; }
|
||||
|
Loading…
Reference in New Issue
Block a user