- firstMessage
- the NDEF message to write after formatting
Type Reason Android.Nfc.TagLostException if the tag leaves the field Java.IO.IOException if there is an I/O failure, or the operation is canceled Android.Nfc.FormatException if the NDEF Message to write is malformed
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.