UserDataPreferences
@Serializable
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
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
.