UserPreferencesDataSource

Interface defining methods to interact with user preferences data source.

Functions

Link copied to clipboard

Retrieves the user profile from the user preferences.

Link copied to clipboard
abstract suspend fun getUserIdOrThrow(): String

Retrieves the user ID or throws an exception if the user is not authenticated.

Link copied to clipboard
abstract suspend fun resetUserPreferences()

Resets the user preferences to their default values.

Link copied to clipboard
abstract suspend fun setDarkThemeConfig(darkThemeConfigPreferences: DarkThemeConfigPreferences)

Sets the dark theme configuration in the user preferences.

Link copied to clipboard
abstract suspend fun setDynamicColorPreference(useDynamicColor: Boolean)

Sets the dynamic color preferences in the user preferences.

Link copied to clipboard
abstract suspend fun setUserProfile(preferencesUserProfile: PreferencesUserProfile)

Sets the user profile in the user preferences.