Companion
object Companion
Properties
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Functions
Link copied to clipboard
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
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
Shuts down all DataStore instances by cancelling their coroutine scopes and clearing the in-memory cache.