Android.Nfc.Tech.Ndef.WriteNdefMessage Method
Overwrite the Android.Nfc.NdefMessage on this tag.

Syntax

[Android.Runtime.Register("writeNdefMessage", "(Landroid/nfc/NdefMessage;)V", "")]
public void WriteNdefMessage (Android.Nfc.NdefMessage p0)

Parameters

msg
the NDEF Message to write, must not be null

Exceptions

TypeReason
Android.Nfc.TagLostExceptionif the tag leaves the field
Java.IO.IOExceptionif there is an I/O failure, or the operation is canceled
Android.Nfc.FormatExceptionif the NDEF Message to write is malformed

Remarks

Overwrite the Android.Nfc.NdefMessage on this tag.

This is an I/O operation and will block until complete. It must not be called from the main application thread. A blocked call will be canceled with Java.IO.IOException if Ndef.Close is called from another thread.

Requires the NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#NFC permission.

[Android Documentation]

Requirements

Namespace: Android.Nfc.Tech
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 10