Added in API level 10

NfcManager


class NfcManager
kotlin.Any
   ↳ android.nfc.NfcManager

High level manager used to obtain an instance of an NfcAdapter.

Use android.content.Context#getSystemService(java.lang.String) with Context#NFC_SERVICE to create an NfcManager, then call getDefaultAdapter to obtain the NfcAdapter.

Alternately, you can just call the static helper NfcAdapter#getDefaultAdapter(android.content.Context).

Summary

Public methods
NfcAdapter!

Get the default NFC Adapter for this device.

Public methods

getDefaultAdapter

Added in API level 10
fun getDefaultAdapter(): NfcAdapter!

Get the default NFC Adapter for this device.

Return
NfcAdapter! the default NFC Adapter