toggle menu
BunyipsLib
v5.1.1-master-1f1d461c
BunyipsLib
switch theme
search in API
BunyipsLib
/
org.murraybridgebunyips.bunyipslib.external
/
TelemetryMenu
/
BooleanOption
Boolean
Option
open
class
BooleanOption
:
TelemetryMenu.OptionElement
,
BooleanSupplier
A menu item backed by a boolean that can be adjusted by the user.
Members
Constructors
Boolean
Option
Link copied to clipboard
constructor
(
name
:
String
,
def
:
Boolean
)
Create a new BooleanOption.
constructor
(
name
:
String
,
def
:
Boolean
,
customTrue
:
String
,
customFalse
:
String
)
Create a new BooleanOption.
Functions
get
As
Boolean
Link copied to clipboard
open
fun
getAsBoolean
(
)
:
Boolean
Gets the state of this boolean menu item.
get
Display
Text
Link copied to clipboard
protected
open
fun
getDisplayText
(
)
:
String
on
Click
Link copied to clipboard
open
fun
onClick
(
)
Override this to get notified when the element is clicked
on
Left
Input
Link copied to clipboard
open
fun
onLeftInput
(
)
Override this to get notified when the element gets a "left edit" input
on
Right
Input
Link copied to clipboard
open
fun
onRightInput
(
)
Override this to get notified when the element gets a "right edit" input
Inherited functions
parent
Link copied to clipboard
protected
open
fun
parent
(
)
:
TelemetryMenu.MenuElement
set
Parent
Link copied to clipboard
protected
open
fun
setParent
(
parent
:
TelemetryMenu.MenuElement
)