public final class NfcManager extends Object
NfcAdapter
.
Use 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)
.
For more information about using NFC, read the Near Field Communication developer guide.
Constructor and Description |
---|
NfcManager(Context context) |
Modifier and Type | Method and Description |
---|---|
NfcAdapter |
getDefaultAdapter()
Get the default NFC Adapter for this device.
|
public NfcManager(Context context)
public NfcAdapter getDefaultAdapter()