MenuElement

An element of TelemetryMenu, representing a "page" in the overall menu display.

Constructors

Link copied to clipboard
constructor(@NonNull name: String, isRoot: Boolean)
Create a new MenuElement; may either be the root menu, or a submenu (set isRoot accordingly)

Functions

Link copied to clipboard
Add a child element to this menu (may either be an Option or another menu)
Link copied to clipboard
open fun addChildren(@NonNull childrenElems: Array<TelemetryMenu.Element>)
Add multiple child elements to this menu (may either be option, or another menu)
Link copied to clipboard
protected open fun getDisplayText(): String

Inherited functions

Link copied to clipboard
Link copied to clipboard
protected open fun setParent(@NonNull parent: TelemetryMenu.MenuElement)