Static Public Member Functions | |
| static void | finishToRootOrSpecificActivity (final Class activityClass, final Runnable completion) |
| Finish activities until we are at the root activity or a specific activity. More... | |
Public Member Functions | |
| boolean | ugiShouldHandleRotation () |
| boolean | ugiAllowRotationOnTablet () |
| boolean | isActive () |
| See if the activity is active (resumed) More... | |
| void | finish (Runnable completion) |
| Finish the activity (close it) More... | |
| void | inventoryStateChanged () |
| Notification that the inventory state has changed. | |
| void | connectionStateChanged () |
| Notification that the connection state has changed. | |
| UgiTitleView | getTitleView () |
| Get the title view. More... | |
| UgiFooterView | getFooterView () |
| Get the footer view. More... | |
| void | backButtonPressed () |
| Called when the back button is pressed. | |
| void | goBack () |
| Go back to the previous screen (activity) | |
| void | setReturnData (Object data) |
| Set the return value for the activity (returned via startActivityWithTransition completion). More... | |
| void | goBackWithData (Object data) |
| Go back to the previous screen (activity), with data. More... | |
| void | configureTitleViewNavigation () |
| Configure the navigation functionality in a title bar that has the defualt id. | |
| void | configureTitleViewNavigation (UgiTitleView titleView) |
| Configure the navigation functionality in a title bar. More... | |
| void | startActivityWithTransition (Class activityClass) |
| Start a new activity. More... | |
| void | startActivityWithTransition (Class activityClass, Object data, StartActivityWithTransitionCompletion completion) |
| Start a new activity. More... | |
| void | startActivityWithoutTransition (Class activityClass, Object data, StartActivityWithTransitionCompletion completion) |
| Start a new activity. More... | |
| Object | getDataPassedIn () |
| Get data passed into the activity. More... | |
| boolean | isDisplayDialogIfDisconnected () |
| Get whether to display the "disconnected .. please connect the Grokker" dialog if needed while running inventory. More... | |
| void | setDisplayDialogIfDisconnected (boolean b) |
| Set whether to display the "disconnected .. please connect the Grokker" dialog if needed while running inventory. More... | |
| boolean | isDisplayDialogIfDisconnectedEvenIfNotRunningInventory () |
| Get whether to display the disconnected dialog anytime the Grokker is not connected, even if not running inventory. More... | |
| void | setDisplayDialogIfDisconnectedEvenIfNotRunningInventory (boolean displayDialogIfDisconnectedEvenIfNotRunningInventory) |
| Set whether to display the disconnected dialog anytime the Grokker is not connected, even if not running inventory. More... | |
| void | disconnectedDialogCancelled () |
| Called if the user touches "cancel" in the disconnected dialog. More... | |
| void | onPD67LeftButton () |
| Handle PD67 left button. | |
| void | onPD67RightButton () |
| Handle PD67 right button. | |
| int | getThemeColor () |
| Color for the activity, defaults to UgiUiUtil.themeColor. More... | |
| void | setThemeColor (final int themeColor) |
| Color for the activity, defaults to UgiUiUtil.themeColor. More... | |
| int | getTextColorOnThemeColor () |
| Color for the activity, defaults to UgiUiUtil.textColorOnThemeColor. More... | |
| void | setTextColorOnThemeColor (final int textColorOnThemeColor) |
| Color for the activity, defaults to UgiUiUtil.textColorOnThemeColor. More... | |
| int | getButtonColor () |
| Color for the activity, defaults to UgiUiUtil.buttonColor. More... | |
| void | setButtonColor (final int buttonColor) |
| Color for the activity, defaults to UgiUiUtil.buttonColor. More... | |
| int | getButtonPressedColor () |
| Color for the activity, defaults to UgiUiUtil.buttonPressedColor. More... | |
| void | setButtonPressedColor (final int buttonPressedColor) |
| Color for the activity, defaults to UgiUiUtil.buttonPressedColor. More... | |
| int | getTextColorOnBackground () |
| Color for the activity, defaults to UgiUiUtil.textColorOnBackground. More... | |
| void | setTextColorOnBackground (final int textColorOnBackground) |
| Color for the activity, defaults to UgiUiUtil.textColorOnBackground. More... | |
Classes | |
| interface | StartActivityWithTransitionCompletion |
| Callback interface for startActivityWithTransition. More... | |
| boolean com.ugrokit.api.UgiUiActivity.ugiShouldHandleRotation | ( | ) |
| boolean com.ugrokit.api.UgiUiActivity.ugiAllowRotationOnTablet | ( | ) |
| boolean com.ugrokit.api.UgiUiActivity.isActive | ( | ) |
See if the activity is active (resumed)
| void com.ugrokit.api.UgiUiActivity.finish | ( | Runnable | completion | ) |
Finish the activity (close it)
| completion | Code to run when done |
|
static |
Finish activities until we are at the root activity or a specific activity.
| activityClass | Specific activity to look for |
| completion | Code to run when done |
| UgiTitleView com.ugrokit.api.UgiUiActivity.getTitleView | ( | ) |
Get the title view.
| UgiFooterView com.ugrokit.api.UgiUiActivity.getFooterView | ( | ) |
Get the footer view.
| void com.ugrokit.api.UgiUiActivity.setReturnData | ( | Object | data | ) |
Set the return value for the activity (returned via startActivityWithTransition completion).
This is an alternative to using goBackWithData()
| data | Data to return |
| void com.ugrokit.api.UgiUiActivity.goBackWithData | ( | Object | data | ) |
Go back to the previous screen (activity), with data.
| data | Data |
| void com.ugrokit.api.UgiUiActivity.configureTitleViewNavigation | ( | UgiTitleView | titleView | ) |
Configure the navigation functionality in a title bar.
| titleView | Title view |
| void com.ugrokit.api.UgiUiActivity.startActivityWithTransition | ( | Class | activityClass | ) |
Start a new activity.
| activityClass | Activity to start |
| void com.ugrokit.api.UgiUiActivity.startActivityWithTransition | ( | Class | activityClass, |
| Object | data, | ||
| StartActivityWithTransitionCompletion | completion | ||
| ) |
Start a new activity.
| activityClass | Activity to start |
| data | Data to pass to activity |
| completion | Code to run when activity completes |
| void com.ugrokit.api.UgiUiActivity.startActivityWithoutTransition | ( | Class | activityClass, |
| Object | data, | ||
| StartActivityWithTransitionCompletion | completion | ||
| ) |
Start a new activity.
| activityClass | Activity to start |
| data | Data to pass to activity |
| completion | Code to run when activity completes |
| Object com.ugrokit.api.UgiUiActivity.getDataPassedIn | ( | ) |
Get data passed into the activity.
| boolean com.ugrokit.api.UgiUiActivity.isDisplayDialogIfDisconnected | ( | ) |
Get whether to display the "disconnected .. please connect the Grokker" dialog if needed while running inventory.
| void com.ugrokit.api.UgiUiActivity.setDisplayDialogIfDisconnected | ( | boolean | b | ) |
Set whether to display the "disconnected .. please connect the Grokker" dialog if needed while running inventory.
| b | true to display the disconnected dialog |
| boolean com.ugrokit.api.UgiUiActivity.isDisplayDialogIfDisconnectedEvenIfNotRunningInventory | ( | ) |
Get whether to display the disconnected dialog anytime the Grokker is not connected, even if not running inventory.
| void com.ugrokit.api.UgiUiActivity.setDisplayDialogIfDisconnectedEvenIfNotRunningInventory | ( | boolean | displayDialogIfDisconnectedEvenIfNotRunningInventory | ) |
Set whether to display the disconnected dialog anytime the Grokker is not connected, even if not running inventory.
| displayDialogIfDisconnectedEvenIfNotRunningInventory | true to display the disconnected dialog even if not running inventory |
| void com.ugrokit.api.UgiUiActivity.disconnectedDialogCancelled | ( | ) |
Called if the user touches "cancel" in the disconnected dialog.
Normally this is subclassed to stop inventory
| int com.ugrokit.api.UgiUiActivity.getThemeColor | ( | ) |
Color for the activity, defaults to UgiUiUtil.themeColor.
| void com.ugrokit.api.UgiUiActivity.setThemeColor | ( | final int | themeColor | ) |
Color for the activity, defaults to UgiUiUtil.themeColor.
| themeColor | new theme color |
| int com.ugrokit.api.UgiUiActivity.getTextColorOnThemeColor | ( | ) |
Color for the activity, defaults to UgiUiUtil.textColorOnThemeColor.
| void com.ugrokit.api.UgiUiActivity.setTextColorOnThemeColor | ( | final int | textColorOnThemeColor | ) |
Color for the activity, defaults to UgiUiUtil.textColorOnThemeColor.
| textColorOnThemeColor | new text color on theme color |
| int com.ugrokit.api.UgiUiActivity.getButtonColor | ( | ) |
Color for the activity, defaults to UgiUiUtil.buttonColor.
| void com.ugrokit.api.UgiUiActivity.setButtonColor | ( | final int | buttonColor | ) |
Color for the activity, defaults to UgiUiUtil.buttonColor.
| buttonColor | new button color |
| int com.ugrokit.api.UgiUiActivity.getButtonPressedColor | ( | ) |
Color for the activity, defaults to UgiUiUtil.buttonPressedColor.
| void com.ugrokit.api.UgiUiActivity.setButtonPressedColor | ( | final int | buttonPressedColor | ) |
Color for the activity, defaults to UgiUiUtil.buttonPressedColor.
| buttonPressedColor | new button pressed |
| int com.ugrokit.api.UgiUiActivity.getTextColorOnBackground | ( | ) |
Color for the activity, defaults to UgiUiUtil.textColorOnBackground.
| void com.ugrokit.api.UgiUiActivity.setTextColorOnBackground | ( | final int | textColorOnBackground | ) |
Color for the activity, defaults to UgiUiUtil.textColorOnBackground.
| textColorOnBackground | new text color |