Skip to content

Most visited

Recently visited

navigation

NfcEvent

public final class NfcEvent
extends Object

java.lang.Object
   ↳ android.nfc.NfcEvent


Wraps information associated with any NFC event.

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

An NfcEvent object is usually included in callbacks from 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 also:

Summary

Fields

public final NfcAdapter nfcAdapter

The NfcAdapter associated with the NFC event.

public final int peerLlcpMajorVersion

The major LLCP version number of the peer associated with the NFC event.

public final int peerLlcpMinorVersion

The minor LLCP version number of the peer associated with the NFC event.

Inherited methods

From class java.lang.Object

Fields

nfcAdapter

Added in API level 14
NfcAdapter nfcAdapter

The NfcAdapter associated with the NFC event.

peerLlcpMajorVersion

Added in API level 23
int peerLlcpMajorVersion

The major LLCP version number of the peer associated with the NFC event.

peerLlcpMinorVersion

Added in API level 23
int peerLlcpMinorVersion

The minor LLCP version number of the peer associated with the NFC event.

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.