mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
fix(barcode-scanner): add missing shouldAutorotate property (#3096)
* Disable or enable Autorotate camera into barcode scanner plugin * fix asterisks in jsdoc must be aligned
This commit is contained in:
parent
75190f5166
commit
8ce541ff9a
@ -27,6 +27,11 @@ export interface BarcodeScannerOptions {
|
|||||||
*/
|
*/
|
||||||
disableSuccessBeep?: boolean;
|
disableSuccessBeep?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable or enable Autorotate. Supported on IOS only.
|
||||||
|
*/
|
||||||
|
shouldAutorotate?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prompt text. Supported on Android only.
|
* Prompt text. Supported on Android only.
|
||||||
*/
|
*/
|
||||||
@ -55,22 +60,22 @@ export interface BarcodeScannerOptions {
|
|||||||
|
|
||||||
export interface BarcodeScanResult {
|
export interface BarcodeScanResult {
|
||||||
format:
|
format:
|
||||||
| 'QR_CODE'
|
| 'QR_CODE'
|
||||||
| 'DATA_MATRIX'
|
| 'DATA_MATRIX'
|
||||||
| 'UPC_E'
|
| 'UPC_E'
|
||||||
| 'UPC_A'
|
| 'UPC_A'
|
||||||
| 'EAN_8'
|
| 'EAN_8'
|
||||||
| 'EAN_13'
|
| 'EAN_13'
|
||||||
| 'CODE_128'
|
| 'CODE_128'
|
||||||
| 'CODE_39'
|
| 'CODE_39'
|
||||||
| 'CODE_93'
|
| 'CODE_93'
|
||||||
| 'CODABAR'
|
| 'CODABAR'
|
||||||
| 'ITF'
|
| 'ITF'
|
||||||
| 'RSS14'
|
| 'RSS14'
|
||||||
| 'RSS_EXPANDED'
|
| 'RSS_EXPANDED'
|
||||||
| 'PDF_417'
|
| 'PDF_417'
|
||||||
| 'AZTEC'
|
| 'AZTEC'
|
||||||
| 'MSI';
|
| 'MSI';
|
||||||
cancelled: boolean;
|
cancelled: boolean;
|
||||||
text: string;
|
text: string;
|
||||||
}
|
}
|
||||||
@ -116,11 +121,11 @@ export class BarcodeScanner extends IonicNativePlugin {
|
|||||||
PHONE_TYPE: string;
|
PHONE_TYPE: string;
|
||||||
SMS_TYPE: string;
|
SMS_TYPE: string;
|
||||||
} = {
|
} = {
|
||||||
TEXT_TYPE: 'TEXT_TYPE',
|
TEXT_TYPE: 'TEXT_TYPE',
|
||||||
EMAIL_TYPE: 'EMAIL_TYPE',
|
EMAIL_TYPE: 'EMAIL_TYPE',
|
||||||
PHONE_TYPE: 'PHONE_TYPE',
|
PHONE_TYPE: 'PHONE_TYPE',
|
||||||
SMS_TYPE: 'SMS_TYPE'
|
SMS_TYPE: 'SMS_TYPE'
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open the barcode scanner.
|
* Open the barcode scanner.
|
||||||
|
Loading…
Reference in New Issue
Block a user