callChangeListener

open fun callChangeListener(newValue: Any): Boolean(source)

Call this method after the user changes the preference, but before the internal state is set. This allows the client to ignore the user value.

Return

true if the user value should be set as the preference value (and persisted)

Parameters

newValue

The new value of this preference