Class TriggerHandler
- java.lang.Object
-
- com.amazon.device.inputmapping.help.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 TriggerHandlervoid
setUiMode(UIMode uiMode)
Set the theme to be used for the dialog boxvoid
showHelp(android.app.Activity activity, java.lang.String title)
Show the input help dialog boxvoid
showHelp(android.app.Activity activity, java.lang.String title, UIMode uiMode)
Show the input help dialog box with a specified theme (light/dark)
-
-
-
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 dialogtitle
- 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 dialogtitle
- the title of the app which will be displayed as the dialog titleuiMode
- one ofUIMode.AUTO
,UIMode.LIGHT
,UIMode.DARK
-
setUiMode
public void setUiMode(UIMode uiMode)
Set the theme to be used for the dialog box- Parameters:
uiMode
- one ofUIMode.AUTO
,UIMode.LIGHT
,UIMode.DARK
-
-