- firstMessage
- the NDEF message to write after formatting, can be null
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
Format a tag as NDEF, and write a Android.Nfc.NdefMessage.
This is a multi-step process, an IOException is thrown if any one step fails.
The card is left in a read-write state after this operation.
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.