public class RuntimeConfig
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RuntimeConfig.ConfigKey |
Modifier and Type | Method and Description |
---|---|
JSONObject |
asJSON()
Get run time config as a JSONObject
|
java.lang.Boolean |
getBoolean(RuntimeConfig.ConfigKey configKey)
Get boolean run time configuration
|
static RuntimeConfig |
getRuntimeConfig(Context ctx)
Method to (build and) get the singleton instance.
|
java.lang.String |
getString(RuntimeConfig.ConfigKey configKey)
Get string run time configuration
|
java.lang.String[] |
getStringArray(RuntimeConfig.ConfigKey configKey)
Get string array run time configuration
|
java.lang.String[] |
getStringArrayStoredAsArrayOrCSV(RuntimeConfig.ConfigKey configKey)
Get string array run time configuration either stored as a string array or stored in
a string field as CSV
|
boolean |
isManagedApp()
Returns true if application is managed
|
public static RuntimeConfig getRuntimeConfig(Context ctx)
ctx
- Context.public boolean isManagedApp()
public java.lang.String getString(RuntimeConfig.ConfigKey configKey)
configKey
- keypublic java.lang.String[] getStringArray(RuntimeConfig.ConfigKey configKey)
configKey
- keypublic java.lang.String[] getStringArrayStoredAsArrayOrCSV(RuntimeConfig.ConfigKey configKey)
configKey
- keypublic java.lang.Boolean getBoolean(RuntimeConfig.ConfigKey configKey)
configKey
- keypublic JSONObject asJSON()