Package 

Class NfcYubiKeyManager


  • 
    public class NfcYubiKeyManager
    
                        

    This class allows you to communicate with local NFC adapter

    • Method Summary

      Modifier and Type Method Description
      void enable(Activity activity, NfcConfiguration nfcConfiguration, Callback<out Object> listener) Enable discovery of nfc tags for foreground activity
      void disable(Activity activity) Disable active listening of nfc events
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NfcYubiKeyManager

        NfcYubiKeyManager(Context context, NfcDispatcher dispatcher)
        Creates instance of NfcYubiKeyManager
        Parameters:
        context - the application context
        dispatcher - 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 tags
        nfcConfiguration - additional configurations for NFC discovery
        listener - the listener to invoke on NFC sessions
      • disable

         void disable(Activity activity)

        Disable active listening of nfc events

        Parameters:
        activity - activity that goes to background or want to stop dispatching nfc tags