@tauri-apps/plugin-barcode-scanner
Esta página aún no está disponible en tu idioma.
Enumerations
Format
Enumeration Members
Aztec
Codabar
Code128
Code39
Code93
DataMatrix
EAN13
EAN8
ITF
PDF417
QRCode
UPC_A
UPC_E
Interfaces
Scanned
Properties
Property | Type | Defined in |
---|---|---|
bounds | unknown | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L38 |
content | string | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L36 |
format | Format | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L37 |
ScanOptions
Properties
Property | Type | Defined in |
---|---|---|
cameraDirection? | "back" | "front" | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L30 |
formats? | Format [] | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L31 |
windowed? | boolean | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L32 |
Type Aliases
PermissionState
Source: undefined
Functions
cancel()
Cancel the current scan process.
Returns
Promise
<void
>
checkPermissions()
Get permission state.
Returns
Promise
<PermissionState
>
openAppSettings()
Open application settings. Useful if permission was denied and the user must manually enable it.
Returns
Promise
<void
>
requestPermissions()
Request permissions to use the camera.
Returns
Promise
<PermissionState
>
scan()
Start scanning.
Parameters
Parameter | Type | Description |
---|---|---|
options ? | ScanOptions |
Returns
© 2024 Tauri Contributors. CC-BY / MIT