BooleanProperty

open class BooleanProperty(initialValue: Boolean = false) : Property<Boolean>

A BooleanProperty.

Parameters

initialValue

Initial Value. Default: false.

Constructors

Link copied to clipboard
fun BooleanProperty(initialValue: Boolean = false)

Creates a BooleanProperty with given initial value.

Functions

Link copied to clipboard
fun addListener(listener: ValueObserver<Boolean>)

Adds a listener silently.

Link copied to clipboard
fun addListenerAndInvoke(initialValue: Boolean, listener: (Boolean, Boolean) -> Unit)

Adds a listener and calls ValueObserver.update on this new listener with given initial value.

Link copied to clipboard
fun clearListeners()

Removes all listeners.

Link copied to clipboard
fun notifyUnchanged()

Notifies all listeners with current value.

Link copied to clipboard
fun removeListener(listener: ValueObserver<Boolean>): Boolean

Removes a listener.

Properties

Link copied to clipboard
open override var value: Boolean

Value of this property.