NdefRecord.GetTypeInfo Method

Definition

Returns the variable length Type field.

[Android.Runtime.Register("getType", "()[B", "")]
public byte[]? GetTypeInfo ();
[<Android.Runtime.Register("getType", "()[B", "")>]
member this.GetTypeInfo : unit -> byte[]

Returns

Byte[]
Attributes

Remarks

Returns the variable length Type field.

This should be used in conjunction with the TNF field to determine the payload format.

Returns an empty byte array if this record does not have a type field.

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

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