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 Summary

    Fields
    Modifier and Type
    Field
    Description
    A default implementation that only returns the default value for each preference.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    Get the value of a preference.
  • Field Details

    • DEFAULT_VALUES

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

    • 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