-
public final class DelegatesKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> ReadWriteProperty<Object, T>observableWhenChanged(T initialValue, Function3<KProperty<?>, T, T, Unit> onChange)A delegate which runs a callback whenever the setter is called and it results in the value changing. final static <T extends Any> ReadWriteProperty<Object, T>observableWhenChanged(T initialValue, Function0<Unit> onChange)A delegate which runs a callback (with no arguments) whenever the setter is called and it results in the value changing. -
-
Method Detail
-
observableWhenChanged
final static <T extends Any> ReadWriteProperty<Object, T> observableWhenChanged(T initialValue, Function3<KProperty<?>, T, T, Unit> onChange)
A delegate which runs a callback whenever the setter is called and it results in the value changing.
-
observableWhenChanged
final static <T extends Any> ReadWriteProperty<Object, T> observableWhenChanged(T initialValue, Function0<Unit> onChange)
A delegate which runs a callback (with no arguments) whenever the setter is called and it results in the value changing.
-
-
-
-