-
public class NfcYubiKeyManagerThis class allows you to communicate with local NFC adapter
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringNFC_SETTINGS_ACTION
-
Constructor Summary
Constructors Constructor Description NfcYubiKeyManager(Context context, NfcDispatcher dispatcher)Creates instance of NfcYubiKeyManager
-
Method Summary
-
-
Constructor Detail
-
NfcYubiKeyManager
NfcYubiKeyManager(Context context, NfcDispatcher dispatcher)
Creates instance of NfcYubiKeyManager- Parameters:
context- the application contextdispatcher- optional implementation of NfcDispatcher to use instead of the default.
-
-
Method Detail
-
enable
void enable(Activity activity, NfcConfiguration nfcConfiguration, Callback<out Object> listener)
Enable discovery of nfc tags for foreground activity
- Parameters:
activity- activity that is going to dispatch nfc tagsnfcConfiguration- additional configurations for NFC discoverylistener- the listener to invoke on NFC sessions
-
-
-
-