Class IOSSettingsService

  • All Implemented Interfaces:
    SettingsService

    public class IOSSettingsService
    extends java.lang.Object
    implements SettingsService
    An implementation of the SettingsService for the iOS platform. It makes use of the application's standard UserDefaults.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void remove​(java.lang.String key)
      Removes the setting for the specified key.
      java.lang.String retrieve​(java.lang.String key)
      Retrieves the value of the setting that is identified by the specified key.
      void store​(java.lang.String key, java.lang.String value)
      Stores the setting with the specified key and value.
      • Methods inherited from class java.lang.Object

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

      • IOSSettingsService

        public IOSSettingsService()
    • Method Detail

      • store

        public void store​(java.lang.String key,
                          java.lang.String value)
        Description copied from interface: SettingsService
        Stores the setting with the specified key and value. If a setting with the specified key exists, the value for that setting will be overwritten with the specified value.
        Specified by:
        store in interface SettingsService
        Parameters:
        key - a key that uniquely identifies the setting
        value - the value associated with the key
      • remove

        public void remove​(java.lang.String key)
        Description copied from interface: SettingsService
        Removes the setting for the specified key.
        Specified by:
        remove in interface SettingsService
        Parameters:
        key - the key of the setting that needs to be removed
      • retrieve

        public java.lang.String retrieve​(java.lang.String key)
        Description copied from interface: SettingsService
        Retrieves the value of the setting that is identified by the specified key.
        Specified by:
        retrieve in interface SettingsService
        Parameters:
        key - the key of the setting to look up
        Returns:
        the value associated with the setting or null when no setting was stored with the specified key