The Delegates class offers a few functions for other delegates.

One is observable(), which allows you to provide a listener function type (e.g., lambda expression) that will get invoked when the property is modified. You are passed the KProperty object for the property, along with the old and new values.

You can learn more about this in:
Run Edit