public final class Ndef extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
MIFARE_CLASSIC |
static String |
NFC_FORUM_TYPE_1 |
static String |
NFC_FORUM_TYPE_2 |
static String |
NFC_FORUM_TYPE_3 |
static String |
NFC_FORUM_TYPE_4 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMakeReadOnly() |
void |
close() |
void |
connect() |
static Ndef |
get(Tag tag) |
NdefMessage |
getCachedNdefMessage() |
int |
getMaxSize() |
NdefMessage |
getNdefMessage() |
Tag |
getTag() |
String |
getType() |
boolean |
isConnected() |
boolean |
isWritable() |
boolean |
makeReadOnly() |
void |
writeNdefMessage(NdefMessage msg) |
public static final String NFC_FORUM_TYPE_1
public static final String NFC_FORUM_TYPE_2
public static final String NFC_FORUM_TYPE_3
public static final String NFC_FORUM_TYPE_4
public static final String MIFARE_CLASSIC
public NdefMessage getCachedNdefMessage()
public String getType()
public int getMaxSize()
public boolean isWritable()
public NdefMessage getNdefMessage() throws IOException, FormatException
IOExceptionFormatExceptionpublic void writeNdefMessage(NdefMessage msg) throws IOException, FormatException
IOExceptionFormatExceptionpublic boolean canMakeReadOnly()
public boolean makeReadOnly()
throws IOException
IOExceptionpublic Tag getTag()
getTag in interface TagTechnologypublic boolean isConnected()
isConnected in interface TagTechnologypublic void connect()
throws IOException
connect in interface TagTechnologyIOExceptionpublic void close()
throws IOException
close in interface TagTechnologyclose in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008-2013. All Rights Reserved.