public interface UiNavigation
| Modifier and Type | Method and Description |
|---|---|
void |
add(Actionable actionable)
Adds a
Actionable to end of the navigation |
void |
layout(ScreenSize screenSize)
Re-orders elements based on screen size if necessary
|
Actionable |
navigate(int keycode)
Update (if required) navigation from key input
|
void |
remove(Actionable actionable)
Removes a
Actionable from the navigation and shifts any following
Actionables by 1 place |
Actionable |
resetCursor()
Resets the selection back to the first
Actionable |
void |
set(int index,
Actionable actionable)
Replace an
Actionable at a specific index |
void layout(ScreenSize screenSize)
screenSize - The current ScreenSizeActionable resetCursor()
ActionableActionablevoid add(Actionable actionable)
Actionable to end of the navigationactionable - The Actionable to addvoid remove(Actionable actionable)
Actionable from the navigation and shifts any following
Actionables by 1 placeactionable - The Actionable to removevoid set(int index,
Actionable actionable)
Actionable at a specific indexindex - The index to replaceactionable - The new ActionableActionable navigate(int keycode)
keycode - The key that was pressedActionable