Class OtpKeyListener


  • public class OtpKeyListener
    extends java.lang.Object
    A helper class that is used to intercept keyboard event from a YubiKey to capture an OTP. Use it directly in an Activity in Activity.onKeyUp(int, android.view.KeyEvent), or in a View.OnKeyListener.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  OtpKeyListener.OtpListener
      Listener interface to react to events.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean onKeyEvent​(android.view.KeyEvent event)  
      • Methods inherited from class java.lang.Object

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

      • onKeyEvent

        public boolean onKeyEvent​(android.view.KeyEvent event)