FileDocCategorySizeDatePackage
NfcEvent.javaAPI DocAndroid 5.1 API1467Thu Mar 12 22:22:10 GMT 2015android.nfc

NfcEvent

public final class NfcEvent extends Object
Wraps information associated with any NFC event.

Immutable object, with direct access to the (final) fields.

An {@link NfcEvent} object is usually included in callbacks from {@link NfcAdapter}. Check the documentation of the callback to see which fields may be set.

This wrapper object is used (instead of parameters in the callback) because it allows new fields to be added without breaking API compatibility.

see
NfcAdapter.OnNdefPushCompleteCallback#onNdefPushComplete
see
NfcAdapter.CreateNdefMessageCallback#createNdefMessage

Fields Summary
public final NfcAdapter
nfcAdapter
The {@link NfcAdapter} associated with the NFC event.
Constructors Summary
NfcEvent(NfcAdapter nfcAdapter)

        this.nfcAdapter = nfcAdapter;
    
Methods Summary