BrazeConfigurationProvider

Provides configuration values for the Braze SDK. Values are retrieved from the runtime configuration settings if present but default to the values from the braze.xml file. After retrieval, each configuration value is cached for performance.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
fun getBooleanValue(primaryKey: String, defaultValue: Boolean): Boolean

Attempts to find the mapped value for the primary key, then the secondary key. A found value for the primary key will always take precedence over the secondary key. The configuration cache will update using the primary key, even if the secondary key has the mapped value.

Link copied to clipboard
fun getColorValue(primaryKey: String): Int?
Link copied to clipboard

Performs retrieval of a given resource type from the varying levels of caches using the primary and secondary keys.

Link copied to clipboard
fun getIntValue(primaryKey: String, defaultValue: Int): Int
Link copied to clipboard
fun getStringSetValue(primaryKey: String, defaultValue: Set<String>?): Set<String>?
Link copied to clipboard
fun getStringValue(primaryKey: String, defaultValue: String?): String?
Link copied to clipboard

Queries the context resources for a given resource identifier.

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val brazeApiKey: BrazeApiKey
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Gets the sender ID key used to register for Firebase Cloud Messaging.

Gets whether the Content Cards unread visual indication bar is enabled.

Gets whether the SDK is configured to automatically register for Firebase Cloud Messaging.

Determines whether the Braze will automatically register tokens in com.google.firebase.messaging.FirebaseMessagingService.onNewToken.

Link copied to clipboard
Link copied to clipboard

Gets the value for the initial log level. Note that this method defaults to Log.INFO. Should only be used in conjunction with BrazeLogger.

Link copied to clipboard
Link copied to clipboard

Retrieves and aggregates all sources of SDK Metadata set on the SDK. Note that caches are skipped in the retrieval since some metadata can be set on the live SDK.

Link copied to clipboard
Link copied to clipboard