Skip to content
Tauri

write

write(records, options?): Promise<void>

Defined in: index.ts:256

Write to an NFC tag.

import { uriRecord, write } from "@tauri-apps/plugin-nfc";
await write([uriRecord("https://tauri.app")], { kind: { type: "ndef" } });

If you did not previously call scan with ScanOptions.keepSessionAlive set to true, it will first scan the tag then write to it.

NFCRecord[]

WriteOptions

Promise<void>


© 2025 Tauri Contributors. CC-BY / MIT