Interface SdkSettingsStorage



  • public interface SdkSettingsStorage
    This class contains methods for interacting with the stored SdkSettings.
    • Method Detail

      • hasStoredSdkSettings

        boolean hasStoredSdkSettings()
        This method can check to see if there are any stored MobileSettings in the SharedPreferences
        Returns:
        true if the storage has MobileSettings stored
      • areSettingsUpToDate

        boolean areSettingsUpToDate(long duration,
                                    java.util.concurrent.TimeUnit timeUnit)
        Determine if the stored settings older than the provided amount of time.
        Parameters:
        duration - the time duration in the given timeUnit
        timeUnit - the unit of the duration argument
        Returns:
        true if the settings are loaded in the provided time range, false if they are outdated.
      • deleteStoredSettings

        void deleteStoredSettings()
        Deletes any stored MobileSettings that may be present in the SharedPreferences.

        Note that this clears all keys that have been created by this class. Please be wary of this if you are using this class to store more than just the JSON representation of the MobileSettings using the MOBILE_SETTINGS_KEY