UserPreferences

class UserPreferences(context: Context)

Persists lightweight user preferences via Jetpack DataStore.

DataStore is used instead of SharedPreferences to keep reads/writes off the main thread.

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Emits true once onboarding has been completed; defaults to false.

Functions

Link copied to clipboard
suspend fun setOnboardingComplete()

Marks onboarding as complete, persisting the flag asynchronously.