public interface SettingsService
Example
Services.get(SettingsService.class).ifPresent(service -> {
service.store("key", "value");
String value = service.retrieve("key");
service.remove("key");
});
Android Configuration: none
iOS Configuration: none
| Modifier and Type | Method and 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.
|
void store(java.lang.String key,
java.lang.String value)
key - a key that uniquely identifies the settingvalue - the value associated with the keyvoid remove(java.lang.String key)
key - the key of the setting that needs to be removedjava.lang.String retrieve(java.lang.String key)
key - the key of the setting to look upnull when
no setting was stored with the specified key