PrefsSnapshot

Read-only view of a PrefsStore's current values. Mirrors androidx.datastore.preferences.core.Preferences.

Inheritors

Types

Link copied to clipboard
interface Editor : PrefsSnapshot

Mutable view inside PrefsStore.edit; reads see values written earlier in the same transform.

Functions

Link copied to clipboard
abstract operator fun contains(key: PrefsKey<*>): Boolean
Link copied to clipboard
abstract operator fun <T> get(key: PrefsKey<T>): T?