Channel View Model
ViewModel class for ChannelScreen.
Since
1.0.0-beta.1
Properties
The StateFlow for the deleteMessage request.
The flag to check if there is a previous page. Refer to ChannelScreenResourceRepository.hasPrevious.
The flag to check if the channel is initialized.
The StateFlow for the loadNext request.
The StateFlow for the loadPrevious request.
The StateFlow of the MessagesEvent.
The StateFlow for the resendMessage request.
The StateFlow for the sendFileMessage request.
The StateFlow for the sendUserMessage request.
The StateFlow of the list of UikitBaseMessage to display.
The StateFlow of the SendbirdScreenUiState.
The StateFlow for the updateUserMessage request.
Functions
Deletes a message with a given message. Deleting is only allowed for a message with ChatBaseMessage type.
Loads the initial messages.
Loads the messages to the previous direction to fetch older messages.
Notifies that the deleteMessage event has been processed to reset deleteMessageEventState to SendbirdEventState.Idle state.
Notifies that the loadNext event has been processed to reset loadNextEventState to SendbirdEventState.Idle state.
Notifies that the loadPrevious event has been processed to reset loadPreviousEventState to SendbirdEventState.Idle state.
Notifies that the resendMessage event has been processed to reset resendMessageEventState to SendbirdEventState.Idle state.
Notifies that the sendFileMessage event has been processed to reset sendFileMessageEventState to SendbirdEventState.Idle state.
Notifies that the sendUserMessage event has been processed to reset sendUserMessageEventState to SendbirdEventState.Idle state.
Notifies that the updateUserMessage event has been processed to reset updateUserMessageEventState to SendbirdEventState.Idle state.
Resends a message with a given message. Resending is only allowed for a message with ChatBaseMessage type.
Sends a file message with a given file.
Sends a user message with a given message.