Class TriggerHandler


  • public class TriggerHandler
    extends java.lang.Object
    Singleton class as the shortcut combination needs to be persisted throughout the app lifespan
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static TriggerHandler getInstance()
      Returns a singleton instance of TriggerHandler
      void setUiMode​(UIMode uiMode)
      Set the theme to be used for the dialog box
      void showHelp​(android.app.Activity activity, java.lang.String title)
      Show the input help dialog box
      void showHelp​(android.app.Activity activity, java.lang.String title, UIMode uiMode)
      Show the input help dialog box with a specified theme (light/dark)
      • Methods inherited from class java.lang.Object

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

      • getInstance

        public static TriggerHandler getInstance()
        Returns a singleton instance of TriggerHandler
      • showHelp

        public void showHelp​(android.app.Activity activity,
                             java.lang.String title)
        Show the input help dialog box
        Parameters:
        activity - the activity which will contain the help dialog
        title - the title of the app which will be displayed as the dialog title
      • showHelp

        public void showHelp​(android.app.Activity activity,
                             java.lang.String title,
                             UIMode uiMode)
        Show the input help dialog box with a specified theme (light/dark)
        Parameters:
        activity - the activity which will contain the help dialog
        title - the title of the app which will be displayed as the dialog title
        uiMode - one of UIMode.AUTO, UIMode.LIGHT, UIMode.DARK