EnumOption

A set of menu items that is backed by an Enum.

Constructors

Link copied to clipboard
constructor(@NonNull name: String, @NonNull e: Array<Enum>)
Create a new EnumOption.
constructor(@NonNull name: String, @NonNull e: Array<Enum>, @NonNull def: Enum)
Create a new EnumOption.

Properties

Link copied to clipboard
protected open var e: Array<Enum>
Link copied to clipboard
protected open var idx: Int
Link copied to clipboard
protected open var name: String

Functions

Link copied to clipboard
protected open fun getDisplayText(): String
Link copied to clipboard
open fun getValue(): Enum
Link copied to clipboard
open fun onClick()
Override this to get notified when the element is clicked
Link copied to clipboard
open fun onLeftInput()
Override this to get notified when the element gets a "left edit" input
Link copied to clipboard
open fun onRightInput()
Override this to get notified when the element gets a "right edit" input

Inherited functions

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