Skip to content
Tauri

ScanKind

ScanKind = { mimeType?: string; type: "tag"; uri?: UriFilter; } | { mimeType?: string; techLists?: TechKind[][]; type: "ndef"; uri?: UriFilter; }

Defined in: index.ts:29

{ mimeType?: string; type: "tag"; uri?: UriFilter; }

optional mimeType: string

type: "tag"

optional uri: UriFilter

{ mimeType?: string; techLists?: TechKind[][]; type: "ndef"; uri?: UriFilter; }

optional mimeType: string

optional techLists: TechKind[][]

Each of the tech-lists is considered independently and the activity is considered a match if any single tech-list matches the tag that was discovered. This provides AND and OR semantics for filtering desired techs.

See https://developer.android.com/reference/android/nfc/NfcAdapter#ACTION_TECH_DISCOVERED for more information.

Examples

import type { TechKind } from "@tauri-apps/plugin-nfc"
const techLists = [
// capture anything using NfcF
[TechKind.NfcF],
// capture all MIFARE Classics with NDEF payloads
[TechKind.NfcA, TechKind.MifareClassic, TechKind.Ndef]
]

type: "ndef"

optional uri: UriFilter


© 2025 Tauri Contributors. CC-BY / MIT