-
public interface PreferencesControllerIfInterface to the shared preferences
-
-
Method Summary
Modifier and Type Method Description abstract StringgetSharedValue(String key)Gets the value for the key. abstract UnitmonitorSharedValue(String listener, String key)Request to monitor the key in the preferences for changesNote: Only 1 listener per key abstract UnitstopMonitoring()Stop listening for shared value changes -
-
Method Detail
-
getSharedValue
abstract String getSharedValue(String key)
Gets the value for the key. Returns a JSON formatted string in the following form:
{ "value":"" }
-
monitorSharedValue
abstract Unit monitorSharedValue(String listener, String key)
Request to monitor the key in the preferences for changes
Note: Only 1 listener per key
-
stopMonitoring
abstract Unit stopMonitoring()
Stop listening for shared value changes
-
-
-
-