Share via


Ndef.CachedNdefMessage Property

Definition

Get the NdefMessage that was read from the tag at discovery time.

public Android.Nfc.NdefMessage? CachedNdefMessage { [Android.Runtime.Register("getCachedNdefMessage", "()Landroid/nfc/NdefMessage;", "")] get; }
[<get: Android.Runtime.Register("getCachedNdefMessage", "()Landroid/nfc/NdefMessage;", "")>]
member this.CachedNdefMessage : Android.Nfc.NdefMessage

Property Value

NDEF Message read from the tag at discovery time, can be null

Attributes

Remarks

Get the NdefMessage that was read from the tag at discovery time.

If the NDEF Message is modified by an I/O operation then it will not be updated here, this function only returns what was discovered when the tag entered the field.

Note that this method may return null if the tag was in the INITIALIZED state as defined by NFC Forum, as in this state the tag is formatted to support NDEF but does not contain a message yet.

Does not cause any RF activity and does not block.

Java documentation for android.nfc.tech.Ndef.getCachedNdefMessage().

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