Android Guides | Samples

Android.Nfc Namespace

Provides access to Near Field Communication (NFC) functionality, allowing applications to read NDEF message in NFC tags.

Remarks

Provides access to Near Field Communication (NFC) functionality, allowing applications to read NDEF message in NFC tags. A "tag" may actually be another device that appears as a tag.

For more information, see the Near Field Communication guide.

Here's a summary of the classes:

NfcManager
This is the high level manager, used to obtain this device's NfcAdapter. You can acquire an instance using Context.GetSystemService(String).
NfcAdapter
This represents the device's NFC adapter, which is your entry-point to performing NFC operations. You can acquire an instance with NfcManager.DefaultAdapter, or NfcAdapter.GetDefaultAdapter(Context).
NdefMessage
Represents an NDEF data message, which is the standard format in which "records" carrying data are transmitted between devices and tags. Your application can receive these messages from an NfcAdapter.ActionTagDiscovered intent.
NdefRecord
Represents a record, which is delivered in a NdefMessage and describes the type of data being shared and carries the data itself.

Note: Not all Android-powered devices provide NFC functionality.

Classes

TypeReason
FormatException [Android Documentation]
NdefMessageRepresents an immutable NDEF Message.
NdefMessage+InterfaceConsts
NdefRecordRepresents an immutable NDEF Record.
NdefRecord+InterfaceConsts
NfcAdapterRepresents the local NFC adapter.
NfcAdapter+ICreateBeamUrisCallback
NfcAdapter+ICreateNdefMessageCallbackA callback to be invoked when another NFC device capable of NDEF push (Android Beam) is within range.
NfcAdapter+IOnNdefPushCompleteCallbackA callback to be invoked when the system successfully delivers your NdefMessage to another device.
NfcAdapter+IReaderCallback
NfcEventWraps information associated with any NFC event.
NfcManagerHigh level manager used to obtain an instance of an NfcAdapter.
NfcReaderFlagsEnumerates values returned by several types and taken as a parameter of the NfcAdapter.EnableReaderMode member.
TagRepresents an NFC tag that has been discovered.
Tag+InterfaceConsts
TagLostException [Android Documentation]