Sdílet prostřednictvím


NfcAdapter.ExtraNdefMessages Field

Definition

Extra containing an array of NdefMessage present on the discovered tag.

[Android.Runtime.Register("EXTRA_NDEF_MESSAGES")]
public const string ExtraNdefMessages;
[<Android.Runtime.Register("EXTRA_NDEF_MESSAGES")>]
val mutable ExtraNdefMessages : string

Field Value

Attributes

Remarks

Extra containing an array of NdefMessage present on the discovered tag.

This extra is mandatory for #ACTION_NDEF_DISCOVERED intents, and optional for #ACTION_TECH_DISCOVERED, and #ACTION_TAG_DISCOVERED intents.

When this extra is present there will always be at least one NdefMessage element. Most NDEF tags have only one NDEF message, but we use an array for future compatibility.

Java documentation for android.nfc.NfcAdapter.EXTRA_NDEF_MESSAGES.

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