interface Single<T> : ObservableField.Observer<T>
Interface for value observers that are supposed to be invoked only once after
a value change. Note, if an Single is added to ObservableField with flag
notifyInitially = true
, it will be called immediately AND it will be called again
after a value change.
abstract fun onChange(newValue: T): Unit
This method is called when value changes. New value is guaranteed to be not equal to the old value. |