Sequenceablepublic class TagInfo extends Object implements Sequenceable
This class provides the technology a tag supports, for example, NFC-A. Applications can create different tags based on the supported technology.
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
EXTRA_TAG_EXTRAS |
Indicates the key used to obtain the extraneous information of technology supported by the tag.
|
static String |
EXTRA_TAG_HANDLE |
Indicates the key used to obtain the tag handle.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
byte[] |
getTagId() |
Obtains the ID of this tag.
|
int[] |
getTagSupportedProfiles() |
Obtains the protocol or technology supported by this tag.
|
boolean |
isProfileSupported(int profile) |
Checks whether a tag supports a specified protocol or technology.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final String EXTRA_TAG_EXTRAS
public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.public byte[] getTagId()
public int[] getTagSupportedProfiles()
public boolean isProfileSupported(int profile)
profile - Indicates the specified protocol or technology.true if the tag supports the specified protocol or technology;
returns false otherwise.