Android.Nfc.Tech.NdefFormatable.FormatReadOnly Method
Formats a tag as NDEF, write a Android.Nfc.NdefMessage, and make read-only.

Syntax

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

Parameters

firstMessage
the NDEF message to write after formatting

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

Formats a tag as NDEF, write a Android.Nfc.NdefMessage, and make read-only.

This is a multi-step process, an IOException is thrown if any one step fails.

The card is left in a read-only state if this method returns successfully.

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 NdefFormatable.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