@tauri-apps/plugin-barcode-scanner
Aztec: "AZTEC";Source: undefined
Codabar: "CODABAR";Not supported on iOS.
Source: undefined
Code128: "CODE_128";Source: undefined
Code39: "CODE_39";Source: undefined
Code93: "CODE_93";Source: undefined
DataMatrix: "DATA_MATRIX";Source: undefined
EAN13: "EAN_13";Source: undefined
EAN8: "EAN_8";Source: undefined
GS1DataBar: "GS1_DATA_BAR";Not supported on Android. Requires iOS 15.4+
Source: undefined
GS1DataBarExpanded: "GS1_DATA_BAR_EXPANDED";Not supported on Android. Requires iOS 15.4+
Source: undefined
GS1DataBarLimited: "GS1_DATA_BAR_LIMITED";Not supported on Android. Requires iOS 15.4+
Source: undefined
ITF: "ITF";Source: undefined
PDF417: "PDF_417";Source: undefined
QRCode: "QR_CODE";Source: undefined
UPC_A: "UPC_A";Not supported on iOS.
Source: undefined
UPC_E: "UPC_E";Source: undefined
| Property | Type | Defined in |
|---|---|---|
cameraDirection? | "back" | "front" | Source: undefined |
formats? | Format[] | Source: undefined |
windowed? | boolean | Source: undefined |
| Property | Type | Defined in |
|---|---|---|
bounds | unknown | Source: undefined |
content | string | Source: undefined |
format | Format | Source: undefined |
type PermissionState: "granted" | "denied" | "prompt" | "prompt-with-rationale";Source: undefined
function cancel(): Promise<void>Cancel the current scan process.
Promise<void>
Source: undefined
function checkPermissions(): Promise<PermissionState>Get permission state.
Promise<PermissionState>
Source: undefined
function openAppSettings(): Promise<void>Open application settings. Useful if permission was denied and the user must manually enable it.
Promise<void>
Source: undefined
function requestPermissions(): Promise<PermissionState>Request permissions to use the camera.
Promise<PermissionState>
Source: undefined
function scan(options?): Promise<Scanned>Start scanning.
| Parameter | Type | Description |
|---|---|---|
options? | ScanOptions |
Source: undefined
Tauri v2.9 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站