UserDataPreferences

@Serializable
data class UserDataPreferences(val id: String = String(), val userName: String? = null, val profilePictureUriString: String? = null, val darkThemeConfigPreferences: DarkThemeConfigPreferences = DarkThemeConfigPreferences.FOLLOW_SYSTEM, val useDynamicColor: Boolean = true)

Represents user data saved in Shared Preferences.

This data class is used to store information about a user, including their ID, name, profile picture URI string, preferred theme brand, dark theme configuration, and dynamic color preference.

Constructors

Link copied to clipboard
constructor(id: String = String(), userName: String? = null, profilePictureUriString: String? = null, darkThemeConfigPreferences: DarkThemeConfigPreferences = DarkThemeConfigPreferences.FOLLOW_SYSTEM, useDynamicColor: Boolean = true)

Properties

Link copied to clipboard

The user's preferred dark theme configuration. Defaults to DarkThemeConfigPreferences.FOLLOW_SYSTEM.

Link copied to clipboard
val id: String

The unique identifier for the user. Defaults to empty if not provided.

Link copied to clipboard

The URI string for the user's profile picture, if available. Defaults to null if not provided.

Link copied to clipboard

A boolean indicating whether the user prefers dynamic colors. Defaults to true.

Link copied to clipboard
val userName: String? = null

The name of the user. Defaults to "No Name" if not provided.