onPreferenceChange

open fun onPreferenceChange(preference: Preference, newValue: Any): Boolean

Listens for changes to the Preference objects and updates them as necessary.