Toggleable

interface Toggleable

Inheritors

Properties

Link copied to clipboard
abstract var enabled: Boolean

Functions

Link copied to clipboard
open fun onDisabled()

Will be called when the state is toggled off.

Link copied to clipboard
open fun onEnabled()

Will be called when the state is toggled on.

Link copied to clipboard
open fun onToggled(state: Boolean): Boolean

The listener that will be called when the state is toggled. By default, it will simply call onEnabled or onDisabled depending on the state.