@tauri-apps/plugin-barcode-scanner
Enumerations
Format
Enumeration Members
Aztec
Codabar
Code128
Code39
Code93
DataMatrix
EAN13
EAN8
ITF
PDF417
QRCode
UPC_A
UPC_E
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
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L7
Functions
cancel()
Cancel the current scan process.
Returns
Promise
<void
>
checkPermissions()
Get permission state.
Returns
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
scan()
Start scanning.
Parameters
Parameter | Type | Description |
---|---|---|
options ? | ScanOptions |
Returns
© 2024 Tauri Contributors. CC-BY / MIT