Observable properties
suggest changevar foo : Int by Delegates.observable("1") { property, oldValue, newValue ->
println("${property.name} was changed from $oldValue to $newValue")
}
foo = 2
The example prints foo was changed from 1 to 2
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents