Added in API level 14

NfcEvent


class NfcEvent
kotlin.Any
   ↳ 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.

Summary

Properties
NfcAdapter!

The NfcAdapter associated with the NFC event.

Int

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

Int

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

Properties

nfcAdapter

Added in API level 14
val nfcAdapter: NfcAdapter!

The NfcAdapter associated with the NFC event.

peerLlcpMajorVersion

Added in API level 23
val peerLlcpMajorVersion: Int

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

peerLlcpMinorVersion

Added in API level 23
val peerLlcpMinorVersion: Int

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