Skip to content
Tauri 中文网

@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

PropertyTypeDefined in
cameraDirection?"back" | "front"Source: undefined
formats?Format[]Source: undefined
windowed?booleanSource: undefined

PropertyTypeDefined in
boundsunknownSource: undefined
contentstringSource: undefined
formatFormatSource: 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.

ParameterTypeDescription
options?ScanOptions

Promise<Scanned>

Source: undefined


Tauri v2.8 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站