EmojiPickerViewModel

class EmojiPickerViewModel(customEmojiPrefs: CustomEmojiPrefs, emojiRepository: EmojiRepository) : ViewModel(source)

Constructors

Link copied to clipboard
constructor(customEmojiPrefs: CustomEmojiPrefs, emojiRepository: EmojiRepository)

Properties

Link copied to clipboard

Flat list of all emojis, available after isLoaded emits true.

Link copied to clipboard

Emoji categories, available after isLoaded emits true.

Link copied to clipboard
Link copied to clipboard
val isLoaded: StateFlow<Boolean>
Link copied to clipboard
val loadError: StateFlow<Boolean>
Link copied to clipboard
val preferredSkinToneIndex: StateFlow<Int>

User's preferred skin tone (persisted across sessions).

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard