public class DefaultConfigActions
extends java.lang.Object
Constructor and Description |
---|
DefaultConfigActions() |
Modifier and Type | Method and Description |
---|---|
static BoolConfigAction |
getBoolSharedPreferencesConfigAction(android.content.SharedPreferences prefs,
java.lang.String booleKey,
boolean defaultValue)
Used with
HoodAPI.createSwitchEntry(BoolConfigAction) . |
static BoolConfigAction |
getBoolSharedPreferencesConfigAction(android.content.SharedPreferences prefs,
java.lang.String booleKey,
java.lang.String label,
boolean defaultValue)
Used with
HoodAPI.createSwitchEntry(BoolConfigAction) . |
static SingleSelectListConfigAction |
getDefaultSharedPrefBackedSpinnerAction(java.lang.String label,
android.content.SharedPreferences prefs,
java.lang.String backendIdPrefKey,
java.lang.String defaultId,
java.util.List<SpinnerElement> elements) |
public static BoolConfigAction getBoolSharedPreferencesConfigAction(android.content.SharedPreferences prefs, java.lang.String booleKey, boolean defaultValue)
HoodAPI.createSwitchEntry(BoolConfigAction)
. A changeable boolean value backed by shared preferences,prefs
- shared preference containing the keybooleKey
- the key in the prefdefaultValue
- the default value if none is foundpublic static BoolConfigAction getBoolSharedPreferencesConfigAction(android.content.SharedPreferences prefs, java.lang.String booleKey, java.lang.String label, boolean defaultValue)
HoodAPI.createSwitchEntry(BoolConfigAction)
. A changeable boolean value backed by shared preferences,prefs
- shared preference containing the keybooleKey
- the key in the preflabel
- label in the uidefaultValue
- the default value if none is foundpublic static SingleSelectListConfigAction getDefaultSharedPrefBackedSpinnerAction(java.lang.String label, android.content.SharedPreferences prefs, java.lang.String backendIdPrefKey, java.lang.String defaultId, java.util.List<SpinnerElement> elements)