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>
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: