Channel View Model Contract
Properties
The StateFlow of the SimpleSendbirdEventState for the deleteMessage request.
The flag to check if there are more messages to load.
The flag to check if the channel is initialized.
The StateFlow of the SimpleSendbirdEventState for the loadNext request.
The StateFlow of the SimpleSendbirdEventState for the loadPrevious request.
The StateFlow of the MessagesEvent.
The StateFlow of the SimpleSendbirdEventState for the resendMessage request.
The StateFlow of the SimpleSendbirdEventState for the sendFileMessage request.
The StateFlow of the SimpleSendbirdEventState for the sendUserMessage request.
The StateFlow of the list of UikitBaseMessage to display.
The StateFlow of the SimpleSendbirdEventState 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.