Property

interface Property<T>

Functions

onChange
Link copied to clipboard
common
abstract fun onChange(owner: Any? = null, callback: (T) -> Unit)
removeChangeListener
Link copied to clipboard
common
abstract fun removeChangeListener(owner: Any? = null)

Properties

value
Link copied to clipboard
common
abstract var value: T

Inheritors

MetaProperty
Link copied to clipboard

Extensions

bind
Link copied to clipboard
common
fun <T> Property<T>.bind(other: Property<T>)

Bi-directional connection between properties

mirror
Link copied to clipboard
common
fun <T> Property<T>.mirror(source: Property<T>)

Reflect all changes in the source property onto this property. Does not reflect changes back.

toFlow
Link copied to clipboard
common
fun <T> Property<T>.toFlow(): StateFlow<T>