Interface IPreferenceValueProvider


  • public interface IPreferenceValueProvider
    Provides mechanisms for getting values for TypedPreference preferences. This is an abstraction so that different types of backing stores can be used.
    • Field Detail

      • DEFAULT_VALUES

        static final IPreferenceValueProvider DEFAULT_VALUES
        A default implementation that only returns the default value for each preference.
    • Method Detail

      • getPreferenceValue

        <T> T getPreferenceValue​(TypedPreference<T> preference)
        Get the value of a preference.
        Parameters:
        preference - preference to get the value for
        Returns:
        the preference value