次の方法で共有


NdefRecord.ToByteArray Method

Definition

Caution

deprecated

Return this NDEF Record as a byte array.

[Android.Runtime.Register("toByteArray", "()[B", "")]
[System.Obsolete("deprecated")]
public byte[]? ToByteArray ();
[<Android.Runtime.Register("toByteArray", "()[B", "")>]
[<System.Obsolete("deprecated")>]
member this.ToByteArray : unit -> byte[]

Returns

Byte[]
Attributes

Remarks

Return this NDEF Record as a byte array.

This method is deprecated, use NdefMessage#toByteArray instead. This is because the NDEF binary format is not defined for a record outside of the context of a message: the MB and ME flags cannot be set without knowing the location inside a message.

This implementation will attempt to serialize a single record by always setting the MB and ME flags (in other words, assume this is a single-record NDEF Message).

This member is deprecated. use NdefMessage#toByteArray() instead

Java documentation for android.nfc.NdefRecord.toByteArray().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to