registerBeforeChangeUpdateListener
fun registerBeforeChangeUpdateListener(onValueUpdateListener: (isSelected: Boolean) -> Boolean): DisposableHandle(source)
Registers a listener to be notified before the selection state changes. This listener can prevent the change from occurring by returning false.
Return
A DisposableHandle that can be used to unregister the listener.
Parameters
onValueUpdateListener
A callback that will be invoked with the proposed new selection state. The callback should return true to allow the change, or false to prevent it.