watchingProperties

fun <V0, V1, R> watchingProperties(property0: KProperty0<V0>, property1: KProperty0<V1>, valueChangedEvent: Event<R>? = null, cleaner: (R) -> Unit?, function: (value0: V0, value1: V1) -> R): PropertyWatcherDelegate2<V0, V1, R>(source)

Delegate property value to a function for which the values of 2 properties are watched

Since

0.4.3

Parameters

property0

the first property for which to watch for value changes

property1

the second property which to watch for value changes

function

a function that maps the two property values to a new value


fun <V0, V1, V2, R> watchingProperties(property0: KProperty0<V0>, property1: KProperty0<V1>, property2: KProperty0<V2>, valueChangedEvent: Event<R>? = null, cleaner: (R) -> Unit? = null, function: (value0: V0, value1: V1, value2: V2) -> R): PropertyWatcherDelegate3<V0, V1, V2, R>(source)

Delegate property value to a function for which the values of 3 properties are watched

Since

0.4.3

Parameters

property0

the first property for which to watch for value changes

property1

the second property which to watch for value changes

property2

the third property which to watch for value changes

function

a function that maps the three property values to a new value