BooleanOption

A menu item backed by a boolean that can be adjusted by the user.

Constructors

Link copied to clipboard
constructor(@NonNull name: String, def: Boolean)
Create a new BooleanOption.
constructor(@NonNull name: String, def: Boolean, @NonNull customTrue: String, @NonNull customFalse: String)
Create a new BooleanOption.

Functions

Link copied to clipboard
open fun getAsBoolean(): Boolean
Gets the state of this boolean menu item.
Link copied to clipboard
protected open fun getDisplayText(): String
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)