RuntimeAppConfigurationProvider

class RuntimeAppConfigurationProvider(val context: Context)

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
internal val configDataStoreProvider: ERROR CLASS: Unresolved name: RuntimeAppConfigurationDataStoreProvider
Link copied to clipboard
private val context: Context

Functions

Link copied to clipboard

Says whether a key is present in the override cache.

Link copied to clipboard
fun getBooleanValue(key: String, defaultValue: Boolean): Boolean
Link copied to clipboard
fun getIntValue(key: String, defaultValue: Int): Int
Link copied to clipboard
Link copied to clipboard
fun getStringValue(key: String, defaultValue: String?): String?
Link copied to clipboard
fun putEnumAsString(key: DataStoreKey, value: Enum<*>?)

Stores the enum in its String representation.

Link copied to clipboard
private fun <T : Enum<T>?> putEnumSet(enumSet: EnumSet<T>?, key: DataStoreKey)
Link copied to clipboard

Sets a 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.

Link copied to clipboard
fun <T : Enum<T>?> updateEnumSetData(key: DataStoreKey, updateValue: EnumSet<T>)

Updates any existing EnumSet data in the runtime configuration.

Link copied to clipboard
fun writeString(key: String, value: String?)

Stores a String value.