docs(barcodescanner): update docs

addresses #260
This commit is contained in:
Ibrahim Hadeed 2016-08-17 07:28:21 -04:00
parent 22ab575dd0
commit 95e256293f
No known key found for this signature in database
GPG Key ID: 0431793F665481A4

View File

@ -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; }