@tauri-apps/plugin-barcode-scanner
Aztec: "AZTEC";Codabar: "CODABAR";Not supported on iOS.
Code128: "CODE_128";Code39: "CODE_39";Code93: "CODE_93";DataMatrix: "DATA_MATRIX";EAN13: "EAN_13";EAN8: "EAN_8";GS1DataBar: "GS1_DATA_BAR";Not supported on Android. Requires iOS 15.4+
GS1DataBarExpanded: "GS1_DATA_BAR_EXPANDED";Not supported on Android. Requires iOS 15.4+
GS1DataBarLimited: "GS1_DATA_BAR_LIMITED";Not supported on Android. Requires iOS 15.4+
ITF: "ITF";PDF417: "PDF_417";QRCode: "QR_CODE";UPC_A: "UPC_A";Not supported on iOS.
UPC_E: "UPC_E";| Property | Type | Defined in |
|---|---|---|
cameraDirection? | "back" | "front" | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L48 |
formats? | Format[] | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L49 |
windowed? | boolean | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L50 |
| Property | Type | Defined in |
|---|---|---|
bounds | unknown | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L56 |
content | string | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L54 |
format | Format | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L55 |
type PermissionState: "granted" | "denied" | "prompt" | "prompt-with-rationale";Source: undefined
function cancel(): Promise<void>Cancel the current scan process.
Promise<void>
function checkPermissions(): Promise<PermissionState>Get permission state.
Promise<PermissionState>
function openAppSettings(): Promise<void>Open application settings. Useful if permission was denied and the user must manually enable it.
Promise<void>
function requestPermissions(): Promise<PermissionState>Request permissions to use the camera.
Promise<PermissionState>
function scan(options?): Promise<Scanned>Start scanning.
| Parameter | Type | Description |
|---|---|---|
options? | ScanOptions |
© 2025 Tauri Contributors. CC-BY / MIT