Saltar al contenido

@tauri-apps/plugin-barcode-scanner

Aztec: "AZTEC";

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L30

Codabar: "CODABAR";

No soportado en iOS.

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L28

Code128: "CODE_128";

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L24

Code39: "CODE_39";

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L22

Code93: "CODE_93";

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L23

DataMatrix: "DATA_MATRIX";

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L31

EAN13: "EAN_13";

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L21

EAN8: "EAN_8";

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L20

GS1DataBar: "GS1_DATA_BAR";

No soportado en Android. Requiere iOS 15.4+

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L36

GS1DataBarExpanded: "GS1_DATA_BAR_EXPANDED";

No soportado en Android. Requiere iOS 15.4+

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L44

GS1DataBarLimited: "GS1_DATA_BAR_LIMITED";

No soportado en Android. Requiere iOS 15.4+

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L40

ITF: "ITF";

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L29

PDF417: "PDF_417";

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L32

QRCode: "QR_CODE";

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L14

UPC_A: "UPC_A";

No soportado en iOS.

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L18

UPC_E: "UPC_E";

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L19

Propiedad Tipo Definido en
cameraDirection? "back" | "front" Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L48
formats? Format[] Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L49
windowed? boolean Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L50

Propiedad Tipo Definido en
bounds unknown Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L56
content string Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L54
format Format Origen: 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";

Origen: undefined

function cancel(): Promise<void>

Cancela el proceso de escaneo actual.

Promise<void>

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L70


function checkPermissions(): Promise<PermissionState>

Obtén el estado de los permisos.

Promise<PermissionState>

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L77


function openAppSettings(): Promise<void>

Abre la configuración de la aplicación. Útil si el permiso fue denegado y el usuario debe habilitarlo manualmente.

Promise<void>

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L95


function requestPermissions(): Promise<PermissionState>

Solicita permisos para usar la cámara.

Promise<PermissionState>

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L86


function scan(options?): Promise<Scanned>

Inicia el escaneo.

Parámetro Tipo Descripción
options? ScanOptions

Promise<Scanned>

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/barcode-scanner/guest-js/index.ts#L63


© 2026 Colaboradores de Tauri. CC-BY / MIT