public class RuntimeAppConfigurationProvider
extends java.lang.Object
Constructor and Description |
---|
RuntimeAppConfigurationProvider(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
clearAllConfigurationValues() |
boolean |
containsKey(java.lang.String key)
Says whether a key is present in the override cache.
|
boolean |
getBooleanValue(java.lang.String key,
boolean defaultValue) |
int |
getIntValue(java.lang.String key,
int defaultValue) |
android.content.SharedPreferences |
getStorageMap() |
java.util.Set<java.lang.String> |
getStringSetValue(java.lang.String key,
java.util.Set<java.lang.String> defaultValue) |
java.lang.String |
getStringValue(java.lang.String key,
java.lang.String defaultValue) |
static void |
putStringIntoEditor(android.content.SharedPreferences.Editor editor,
java.lang.String key,
java.lang.String value)
Puts a String into the editor.
|
void |
setConfiguration(BrazeConfig config)
Sets a
BrazeConfig into the override cache. |
public RuntimeAppConfigurationProvider(android.content.Context context)
public void setConfiguration(BrazeConfig config)
BrazeConfig
into the override cache. The cache is not cleared beforehand, merging
the new configuration with the old. Old key values get clobbered by new key values.config
- the new configuration to set into the cache.public void clearAllConfigurationValues()
public java.lang.String getStringValue(java.lang.String key, java.lang.String defaultValue)
public int getIntValue(java.lang.String key, int defaultValue)
public boolean getBooleanValue(java.lang.String key, boolean defaultValue)
public java.util.Set<java.lang.String> getStringSetValue(java.lang.String key, java.util.Set<java.lang.String> defaultValue)
public boolean containsKey(java.lang.String key)
key
- the key in the cachepublic android.content.SharedPreferences getStorageMap()
public static void putStringIntoEditor(android.content.SharedPreferences.Editor editor, java.lang.String key, java.lang.String value)
value
- if null, does nothing