/**@class android.nfc.tech.NdefFormatable @extends android.nfc.tech.BasicTagTechnology Provide access to NDEF format operations on a {@link Tag}. <p>Acquire a {@link android.nfc.tech.NdefFormatable} object using {@link #get}. <p>Android devices with NFC must only enumerate and implement this class for tags for which it can format to NDEF. <p>Unfortunately the procedures to convert unformated tags to NDEF formatted tags are not specified by NFC Forum, and are not generally well-known. So there is no mandatory set of tags for which all Android devices with NFC must support {@link android.nfc.tech.NdefFormatable}. <p class="note"><strong>Note:</strong> Methods that perform I/O operations require the {@link android.Manifest.permission#NFC} permission. */ var NdefFormatable = { /**Get an instance of {@link android.nfc.tech.NdefFormatable} for the given tag. <p>Does not cause any RF activity and does not block. <p>Returns null if {@link android.nfc.tech.NdefFormatable} was not enumerated in {@link Tag#getTechList}. This indicates the tag is not NDEF formatable by this Android device. @param {Object {Tag}} tag an NDEF formatable tag @return {Object {android.nfc.tech.NdefFormatable}} NDEF formatable object */ get : function( ) {}, /**Format a tag as NDEF, and write a {@link android.nfc.tech.NdefMessage}. <p>This is a multi-step process, an IOException is thrown if any one step fails. <p>The card is left in a read-write state after this operation. <p>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 {@link IOException} if {@link #close} is called from another thread. <p class="note">Requires the {@link android.Manifest.permission#NFC} permission. @param {Object {NdefMessage}} firstMessage the NDEF message to write after formatting, can be null @throws TagLostException if the tag leaves the field @throws IOException if there is an I/O failure, or the operation is canceled @throws FormatException if the NDEF Message to write is malformed */ format : function( ) {}, /**Formats a tag as NDEF, write a {@link android.nfc.tech.NdefMessage}, and make read-only. <p>This is a multi-step process, an IOException is thrown if any one step fails. <p>The card is left in a read-only state if this method returns successfully. <p>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 {@link IOException} if {@link #close} is called from another thread. <p class="note">Requires the {@link android.Manifest.permission#NFC} permission. @param {Object {NdefMessage}} firstMessage the NDEF message to write after formatting @throws TagLostException if the tag leaves the field @throws IOException if there is an I/O failure, or the operation is canceled @throws FormatException if the NDEF Message to write is malformed */ formatReadOnly : function( ) {}, };