public final class NdefRecord extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<NdefRecord> |
CREATOR |
static byte[] |
RTD_ALTERNATIVE_CARRIER |
static byte[] |
RTD_HANDOVER_CARRIER |
static byte[] |
RTD_HANDOVER_REQUEST |
static byte[] |
RTD_HANDOVER_SELECT |
static byte[] |
RTD_SMART_POSTER |
static byte[] |
RTD_TEXT |
static byte[] |
RTD_URI |
static short |
TNF_ABSOLUTE_URI |
static short |
TNF_EMPTY |
static short |
TNF_EXTERNAL_TYPE |
static short |
TNF_MIME_MEDIA |
static short |
TNF_UNCHANGED |
static short |
TNF_UNKNOWN |
static short |
TNF_WELL_KNOWN |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
NdefRecord(byte[] data)
Deprecated.
|
NdefRecord(short tnf,
byte[] type,
byte[] id,
byte[] payload) |
| Modifier and Type | Method and Description |
|---|---|
static NdefRecord |
createApplicationRecord(String packageName) |
static NdefRecord |
createExternal(String domain,
String type,
byte[] data) |
static NdefRecord |
createMime(String mimeType,
byte[] mimeData) |
static NdefRecord |
createUri(String uriString) |
static NdefRecord |
createUri(Uri uri) |
int |
describeContents() |
boolean |
equals(Object obj) |
byte[] |
getId() |
byte[] |
getPayload() |
short |
getTnf() |
byte[] |
getType() |
int |
hashCode() |
byte[] |
toByteArray()
Deprecated.
|
String |
toMimeType() |
String |
toString() |
Uri |
toUri() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final short TNF_EMPTY
public static final short TNF_WELL_KNOWN
public static final short TNF_MIME_MEDIA
public static final short TNF_ABSOLUTE_URI
public static final short TNF_EXTERNAL_TYPE
public static final short TNF_UNKNOWN
public static final short TNF_UNCHANGED
public static final byte[] RTD_TEXT
public static final byte[] RTD_URI
public static final byte[] RTD_SMART_POSTER
public static final byte[] RTD_ALTERNATIVE_CARRIER
public static final byte[] RTD_HANDOVER_CARRIER
public static final byte[] RTD_HANDOVER_REQUEST
public static final byte[] RTD_HANDOVER_SELECT
public static final Parcelable.Creator<NdefRecord> CREATOR
public NdefRecord(short tnf,
byte[] type,
byte[] id,
byte[] payload)
@Deprecated public NdefRecord(byte[] data) throws FormatException
FormatExceptionpublic static NdefRecord createApplicationRecord(String packageName)
public static NdefRecord createUri(Uri uri)
public static NdefRecord createUri(String uriString)
public static NdefRecord createMime(String mimeType, byte[] mimeData)
public static NdefRecord createExternal(String domain, String type, byte[] data)
public short getTnf()
public byte[] getType()
public byte[] getId()
public byte[] getPayload()
@Deprecated public byte[] toByteArray()
public String toMimeType()
public Uri toUri()
public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface ParcelableCopyright © 2008-2013. All Rights Reserved.