Companion

object Companion

Properties

Link copied to clipboard
internal const val BRAZE_DATASTORE_PREFIX: String
Link copied to clipboard
internal val dataStoreInstanceCache: ConcurrentHashMap<String, ERROR CLASS: Cannot infer argument for type parameter V>
Link copied to clipboard
private val dataStoreScopeMap: ConcurrentHashMap<String, ERROR CLASS: Cannot infer argument for type parameter V>
Link copied to clipboard
internal var eventPublisher: ERROR CLASS: Symbol not found for IEventMessenger??
Link copied to clipboard
private const val FILE_DELETE_MAX_RETRIES: Int = 3
Link copied to clipboard
private const val FILE_DELETE_RETRY_DELAY_MS: Long = 50
Link copied to clipboard

Prefix for DataStore files that should persist across wipeData() calls. These files contain non-PII data that should survive user data wipes.

Link copied to clipboard
internal const val RUNTIME_CONFIG_PREFIX: String
Link copied to clipboard
private val scopeCreationLock: Any
Link copied to clipboard
val TAG: String

Functions

Link copied to clipboard
private fun deleteDataStoreFiles(context: Context)

Deletes DataStore files from disk.

Link copied to clipboard
private fun deleteFileWithRetry(file: File, maxRetries: Int = FILE_DELETE_MAX_RETRIES, delayMs: Long = FILE_DELETE_RETRY_DELAY_MS)

Attempts to delete a file with retry logic to handle temporarily locked files.

Link copied to clipboard
internal fun getOrCreateScopeForKey(key: String): ERROR CLASS: Symbol not found for CoroutineScope
Link copied to clipboard

Returns true if a DataStore filename is eligible for deletion during Braze.wipeData: it belongs to Braze but is neither a persistent nor a runtime-config file.

Link copied to clipboard
fun shutdownAllDataStores(context: Context? = null)

Shuts down all DataStore instances by cancelling their coroutine scopes and clearing the in-memory cache.