Skip to content
Tauri 中文网

@tauri-apps/plugin-barcode-scanner

Enumerations

Format

Enumeration Members

Aztec
Aztec: "AZTEC";

Source: undefined

Codabar
Codabar: "CODABAR";

Source: undefined

Code128
Code128: "CODE_128";

Source: undefined

Code39
Code39: "CODE_39";

Source: undefined

Code93
Code93: "CODE_93";

Source: undefined

DataMatrix
DataMatrix: "DATA_MATRIX";

Source: undefined

EAN13
EAN13: "EAN_13";

Source: undefined

EAN8
EAN8: "EAN_8";

Source: undefined

ITF
ITF: "ITF";

Source: undefined

PDF417
PDF417: "PDF_417";

Source: undefined

QRCode
QRCode: "QR_CODE";

Source: undefined

UPC_A
UPC_A: "UPC_A";

Source: undefined

UPC_E
UPC_E: "UPC_E";

Source: undefined

Interfaces

Scanned

Properties

PropertyTypeDefined in
boundsunknownSource: undefined
contentstringSource: undefined
formatFormatSource: undefined

ScanOptions

Properties

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

Type Aliases

PermissionState

type PermissionState: "granted" | "denied" | "prompt" | "prompt-with-rationale";

Source: undefined

Functions

cancel()

function cancel(): Promise<void>

Cancel the current scan process.

Returns

Promise<void>

Source: undefined


checkPermissions()

function checkPermissions(): Promise<PermissionState>

Get permission state.

Returns

Promise<PermissionState>

Source: undefined


openAppSettings()

function openAppSettings(): Promise<void>

Open application settings. Useful if permission was denied and the user must manually enable it.

Returns

Promise<void>

Source: undefined


requestPermissions()

function requestPermissions(): Promise<PermissionState>

Request permissions to use the camera.

Returns

Promise<PermissionState>

Source: undefined


scan()

function scan(options?): Promise<Scanned>

Start scanning.

Parameters

ParameterTypeDescription
options?ScanOptions

Returns

Promise<Scanned>

Source: undefined


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