AndroidPreferencesRepository

Properties

Link copied to clipboard
abstract val keys: StateFlow<Map<String, String>>

Functions

Link copied to clipboard
abstract fun <T> getCurrentValue(key: Key<T>): T?

Synchronous retriever of the current value of the given preference key. The returned value will be null if SDK has not populated it yet. Note, that this method works asynchronously and may return null even if the SDK is ready if the background thread populating it is busy

Link copied to clipboard
abstract fun <T> getValue(key: Key<T>): Flow<T?>

Asynchronous retriever of the value of the given preference key. The returned flow will be populated with values when SDK is ready. Note, that this method works asynchronously and the flow may contain null even if the SDK is ready if the background thread populating it is busy