Package 

Class SharedPreferencesStorage

    • Constructor Detail

      • SharedPreferencesStorage

        SharedPreferencesStorage(Context context, String sharedPreferencesName)
        Parameters:
        context - a valid context
        sharedPreferencesName - the preferences file name
    • Method Detail

      • store

         Unit store(String name, Long value)

        Store a given value in the Storage.

        Parameters:
        name - the name of the value to store.
        value - the value to store.
      • store

         Unit store(String name, Integer value)

        Store a given value in the Storage.

        Parameters:
        name - the name of the value to store.
        value - the value to store.
      • store

         Unit store(String name, String value)

        Store a given value in the Storage.

        Parameters:
        name - the name of the value to store.
        value - the value to store.
      • store

         Unit store(String name, Boolean value)

        Store a given value in the Storage.

        Parameters:
        name - the name of the value to store.
        value - the value to store.
      • retrieveLong

         Long retrieveLong(String name)

        Retrieve a value from the Storage.

        Parameters:
        name - the name of the value to retrieve.
      • retrieveString

         String retrieveString(String name)

        Retrieve a value from the Storage.

        Parameters:
        name - the name of the value to retrieve.
      • retrieveInteger

         Integer retrieveInteger(String name)

        Retrieve a value from the Storage.

        Parameters:
        name - the name of the value to retrieve.
      • retrieveBoolean

         Boolean retrieveBoolean(String name)

        Retrieve a value from the Storage.

        Parameters:
        name - the name of the value to retrieve.
      • remove

         Unit remove(String name)

        Removes a value from the storage.

        Parameters:
        name - the name of the value to remove.