MessagesViewModel

class MessagesViewModel(server: String, email: String, password: String, accountId: String, database: AppDatabase? = null, application: Application? = null) : ViewModel

Constructors

Link copied to clipboard
constructor(server: String, email: String, password: String, accountId: String, database: AppDatabase? = null, application: Application? = null)

Properties

Link copied to clipboard
val uiState: StateFlow<MessagesUiState>

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open fun onCleared()
Link copied to clipboard
fun refresh()
Link copied to clipboard
fun removeMessage(messageId: String)
Link copied to clipboard
fun selectFolder(folder: Folder)
Link copied to clipboard
fun updateMessageReadStatus(messageId: String, isUnread: Boolean)