MenuElement

open class MenuElement : TelemetryMenu.Element

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

Constructors

Link copied to clipboard
constructor(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
open fun addChild(child: TelemetryMenu.Element)
Add a child element to this menu (may either be an Option or another menu)
Link copied to clipboard
open fun addChildren(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
protected open fun parent(): TelemetryMenu.MenuElement
Link copied to clipboard
protected open fun setParent(parent: TelemetryMenu.MenuElement)