Interface IPreference

    • Method Detail

      • addListener

        void addListener​(IPreferenceListener listener)
        Adds the given listener for value change events to this preference. Has no effect if the listener is already registered.

        Make sure to remove the listener on the same preference instance.

        Parameters:
        listener - not null
      • removeListener

        void removeListener​(IPreferenceListener listener)
        Removes the given value change listener from this preference. Has no effect if the listener was not already registered.
        Parameters:
        listener - not null