addListener

abstract fun addListener(listener: ObservableProperty.Listener<T>): CancellationToken

Add a ValueChangeListener for value change on this property.

Return

Cancellation token to cancel the listening. Alternatively you can call removeListener with the same listener object as passed into this method.