Skip to content

Commit

Permalink
fix(barcode-scanner): add missing shouldAutorotate property (#3096)
Browse files Browse the repository at this point in the history
* Disable or enable Autorotate camera into barcode scanner plugin

* fix asterisks in jsdoc must be aligned
  • Loading branch information
reymav authored and danielsogl committed Jul 12, 2019
1 parent 75190f5 commit 8ce541f
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions src/@ionic-native/plugins/barcode-scanner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ export interface BarcodeScannerOptions {
*/
disableSuccessBeep?: boolean;

/**
* Disable or enable Autorotate. Supported on IOS only.
*/
shouldAutorotate?: boolean;

/**
* Prompt text. Supported on Android only.
*/
Expand Down Expand Up @@ -55,22 +60,22 @@ export interface BarcodeScannerOptions {

export interface BarcodeScanResult {
format:
| 'QR_CODE'
| 'DATA_MATRIX'
| 'UPC_E'
| 'UPC_A'
| 'EAN_8'
| 'EAN_13'
| 'CODE_128'
| 'CODE_39'
| 'CODE_93'
| 'CODABAR'
| 'ITF'
| 'RSS14'
| 'RSS_EXPANDED'
| 'PDF_417'
| 'AZTEC'
| 'MSI';
| 'QR_CODE'
| 'DATA_MATRIX'
| 'UPC_E'
| 'UPC_A'
| 'EAN_8'
| 'EAN_13'
| 'CODE_128'
| 'CODE_39'
| 'CODE_93'
| 'CODABAR'
| 'ITF'
| 'RSS14'
| 'RSS_EXPANDED'
| 'PDF_417'
| 'AZTEC'
| 'MSI';
cancelled: boolean;
text: string;
}
Expand Down Expand Up @@ -116,11 +121,11 @@ export class BarcodeScanner extends IonicNativePlugin {
PHONE_TYPE: string;
SMS_TYPE: string;
} = {
TEXT_TYPE: 'TEXT_TYPE',
EMAIL_TYPE: 'EMAIL_TYPE',
PHONE_TYPE: 'PHONE_TYPE',
SMS_TYPE: 'SMS_TYPE'
};
TEXT_TYPE: 'TEXT_TYPE',
EMAIL_TYPE: 'EMAIL_TYPE',
PHONE_TYPE: 'PHONE_TYPE',
SMS_TYPE: 'SMS_TYPE'
};

/**
* Open the barcode scanner.
Expand Down

0 comments on commit 8ce541f

Please sign in to comment.