@tauri-apps/plugin-nfc - v2.3.0
    Preparing search index...

    Type Alias ScanKind

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

    Type declaration

    • { type: "tag"; uri?: UriFilter; mimeType?: string }
    • { type: "ndef"; uri?: UriFilter; mimeType?: string; techLists?: TechKind[][] }
      • type: "ndef"
      • Optionaluri?: 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]
        ]