android.nfc.tech
Class Ndef
java.lang.Object
android.nfc.tech.Ndef
- All Implemented Interfaces:
- TagTechnology, Closeable
public final class Ndef
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NFC_FORUM_TYPE_1
public static final String NFC_FORUM_TYPE_1
- See Also:
- Constant Field Values
NFC_FORUM_TYPE_2
public static final String NFC_FORUM_TYPE_2
- See Also:
- Constant Field Values
NFC_FORUM_TYPE_3
public static final String NFC_FORUM_TYPE_3
- See Also:
- Constant Field Values
NFC_FORUM_TYPE_4
public static final String NFC_FORUM_TYPE_4
- See Also:
- Constant Field Values
MIFARE_CLASSIC
public static final String MIFARE_CLASSIC
- See Also:
- Constant Field Values
get
public static Ndef get(Tag tag)
getCachedNdefMessage
public NdefMessage getCachedNdefMessage()
getType
public String getType()
getMaxSize
public int getMaxSize()
isWritable
public boolean isWritable()
getNdefMessage
public NdefMessage getNdefMessage()
throws IOException,
FormatException
- Throws:
IOException
FormatException
writeNdefMessage
public void writeNdefMessage(NdefMessage msg)
throws IOException,
FormatException
- Throws:
IOException
FormatException
canMakeReadOnly
public boolean canMakeReadOnly()
makeReadOnly
public boolean makeReadOnly()
throws IOException
- Throws:
IOException
getTag
public Tag getTag()
- Specified by:
getTag in interface TagTechnology
isConnected
public boolean isConnected()
- Specified by:
isConnected in interface TagTechnology
connect
public void connect()
throws IOException
- Specified by:
connect in interface TagTechnology
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface TagTechnology- Specified by:
close in interface Closeable
- Throws:
IOException
Copyright © 2008-2012. All Rights Reserved.