Start native apps faster with the Composables CLI ->
Object

PreferencesGlanceStateDefinition

Base class helping the creation of a state using DataStore's Preferences.

Source set: Android
public object PreferencesGlanceStateDefinition : GlanceStateDefinition<Preferences>

Base class helping the creation of a state using DataStore's Preferences.

Functions

getLocation

Source set: Android
override fun getLocation(context: Context, fileKey: String): File

getDataStore

Source set: Android
override suspend fun getDataStore(context: Context, fileKey: String): DataStore<Preferences>