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; }
optionalmimeType:string
type:
"tag"
optionaluri:UriFilter
{ mimeType?: string; techLists?: TechKind[][]; type: "ndef"; uri?: UriFilter; }
optionalmimeType:string
optionaltechLists: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"
optionaluri:UriFilter
© 2025 Tauri Contributors. CC-BY / MIT