Switchable

interface Switchable

A Switchable instance

Controls the observer function execution Is enabled by default

Functions

Link copied to clipboard
abstract fun disable()

Disables the observer function execution

Link copied to clipboard
abstract fun enable()

Enables the observer function execution

Link copied to clipboard
abstract fun isEnabled(): Boolean

Returns the current state