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