Class DefaultPersistenceMethod

  • All Implemented Interfaces:
    com.sap.cloud.mobile.foundation.configurationprovider.ConfigurationPersister

    
    public class DefaultPersistenceMethod
     implements ConfigurationPersister
                        

    Default Persistence Method. Responsible for persisting the configuration data into the Default location

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static JSONObject getPersistedConfiguration(@NonNull() Context context) Returns the last configuration stored by the Default Persistence Method.
      static void resetPersistedConfiguration(@NonNull() Context context) * Clears any configuration stored by the Default Persistence Method.
      void persistConfiguration(@NonNull() JSONObject configuration) Add configuration data to the default persistence location.
      void resetPersistedConfiguration() Clear any persisted data from the default location.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getPersistedConfiguration

        @NonNull() static JSONObject getPersistedConfiguration(@NonNull() Context context)

        Returns the last configuration stored by the Default Persistence Method.

        Parameters:
        context - An android Context.
      • resetPersistedConfiguration

         static void resetPersistedConfiguration(@NonNull() Context context)

        * Clears any configuration stored by the Default Persistence Method.

        Parameters:
        context - An android Context.
      • persistConfiguration

         void persistConfiguration(@NonNull() JSONObject configuration)

        Add configuration data to the default persistence location.

        Parameters:
        configuration - The JSONObject configuration data that was returned by the provider