Unhide some NFC APIs that are required for the Tag app.
Change-Id: Ic64e00476132dbf4644de5c465e06fe11a264508
This commit is contained in:
@@ -34,15 +34,12 @@ public class NdefMessage implements Parcelable {
|
||||
|
||||
private final NdefRecord[] mRecords;
|
||||
|
||||
//TODO(npelly) FormatException
|
||||
/**
|
||||
* Create an NDEF message from raw bytes.
|
||||
* <p>
|
||||
* Validation is performed to make sure the Record format headers are valid,
|
||||
* and the ID + TYPE + PAYLOAD fields are of the correct size.
|
||||
* @throws FormatException
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public NdefMessage(byte[] data) throws FormatException {
|
||||
mRecords = null; // stop compiler complaints about final field
|
||||
@@ -69,10 +66,7 @@ public class NdefMessage implements Parcelable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a byte array representation of this NDEF message.
|
||||
*
|
||||
* @return byte array
|
||||
* @hide
|
||||
* Returns a byte array representation of this entire NDEF message.
|
||||
*/
|
||||
public byte[] toByteArray() {
|
||||
//TODO(nxp): do not return null
|
||||
|
||||
@@ -247,8 +247,7 @@ public class NdefRecord implements Parcelable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return this NDEF Record as a byte array.
|
||||
* @hide
|
||||
* Returns this entire NDEF Record as a byte array.
|
||||
*/
|
||||
public byte[] toByteArray() {
|
||||
return generate(mFlags, mTnf, mType, mId, mPayload);
|
||||
|
||||
Reference in New Issue
Block a user