@tauri-apps/plugin-barcode-scanner
Enumerations
Format
Enumeration Members
Aztec
Aztec: 'AZTEC';
Source: index.ts:20
Codabar
Codabar: 'CODABAR';
Source: index.ts:18
Code128
Code128: 'CODE_128';
Source: index.ts:17
Code39
Code39: 'CODE_39';
Source: index.ts:15
Code93
Code93: 'CODE_93';
Source: index.ts:16
DataMatrix
DataMatrix: 'DATA_MATRIX';
Source: index.ts:21
EAN13
EAN13: 'EAN_13';
Source: index.ts:14
EAN8
EAN8: 'EAN_8';
Source: index.ts:13
ITF
ITF: 'ITF';
Source: index.ts:19
PDF417
PDF417: 'PDF_417';
Source: index.ts:22
QRCode
QRCode: 'QR_CODE';
Source: index.ts:10
UPC_A
UPC_A: 'UPC_A';
Source: index.ts:11
UPC_E
UPC_E: 'UPC_E';
Source: index.ts:12
Interfaces
ScanOptions
Properties
Property | Type |
---|---|
cameraDirection ? | "back" | "front" |
formats ? | Format [] |
windowed ? | boolean |
Scanned
Properties
Property | Type |
---|---|
bounds | unknown |
content | string |
format | Format |
Type Aliases
PermissionState
PermissionState: 'granted' | 'denied' | 'prompt';
Source: index.ts:7
Functions
cancel()
cancel(): Promise< void >
Cancel the current scan process.
Returns
Promise
< void
>
Source: index.ts:48
checkPermissions()
checkPermissions(): Promise< PermissionState >
Get permission state.
Returns
Source: index.ts:55
openAppSettings()
openAppSettings(): Promise< void >
Open application settings. Useful if permission was denied and the user must manually enable it.
Returns
Promise
< void
>
Source: index.ts:73
requestPermissions()
requestPermissions(): Promise< PermissionState >
Request permissions to use the camera.
Returns
Source: index.ts:64
scan()
scan(options?): Promise< Scanned >
Start scanning.
Parameters
Parameter | Type | Description |
---|---|---|
options ? | ScanOptions |
Returns
Source: index.ts:41
© 2024 Tauri Contributors. CC-BY / MIT