Package-level declarations

Types

Link copied to clipboard
data class AudioPlayerState(val current: AudioPlayerState.CurrentAudioState = CurrentAudioState(), val seekTo: IntFloatMap = intFloatMapOf())

Represents the state of the audio player.

Link copied to clipboard
data class CancelGiphy(val message: Message) : GiphyAction

Cancel the ephemeral message.

Link copied to clipboard
data class CustomModerationOption(val text: Int, val extraData: Map<String, Any> = emptyMap()) : ModeratedMessageOption

Custom actions that you can define for moderated messages.

Link copied to clipboard

Represents a date separator inside the message list.

Link copied to clipboard

Intended to be used for regulating visibility of deleted messages and filtering them out accordingly.

Link copied to clipboard

Prompts the user to delete the message if the message was flagged by moderation.

Link copied to clipboard

Prompts the user to edit the message if the message was flagged by moderation.

Link copied to clipboard

Represents an empty thread placeholder item inside thread messages list.

Link copied to clipboard
sealed class GiphyAction

Represents the list of actions users can take with ephemeral giphy messages.

Link copied to clipboard

Represents either regular or system message item inside a message list.

Link copied to clipboard

Represents the state when the message is currently being focused.

Link copied to clipboard

Represents the state when we've removed the focus from the message.

Link copied to clipboard
sealed class MessageFocusState

Represents the message focus state, in case the user jumps to a message.

Link copied to clipboard

Intended to be used for regulating the visibility of a single message footer visibility.

Link copied to clipboard
data class MessageItemState(val message: Message = Message(), val parentMessageId: String? = null, val isMine: Boolean = false, val isInThread: Boolean = false, val showMessageFooter: Boolean = false, val currentUser: User? = null, val groupPosition: List<MessagePosition> = listOf(MessagePosition.NONE), val isMessageRead: Boolean = false, val deletedMessageVisibility: DeletedMessageVisibility = DeletedMessageVisibility.ALWAYS_HIDDEN, val focusState: MessageFocusState? = null, val messageReadBy: List<ChannelUserRead> = emptyList()) : HasMessageListItemState

Represents a message item inside the messages list.

Link copied to clipboard

Represents a list item inside a message list.

Link copied to clipboard
data class MessageListState(val messageItems: List<MessageListItemState> = emptyList(), val endOfNewMessagesReached: Boolean = true, val endOfOldMessagesReached: Boolean = false, val isLoading: Boolean = false, val isLoadingNewerMessages: Boolean = false, val isLoadingOlderMessages: Boolean = false, val currentUser: User? = User(), val parentMessageId: String? = null, val unreadCount: Int = 0, val newMessageState: NewMessageState? = null, val selectedMessageState: SelectedMessageState? = null)

Holds the state of the messages list screen.

Link copied to clipboard

Determines the alignment of the reaction icon inside user reactions.

Link copied to clipboard

Represents the group position of a message, if the message is in a group. Otherwise represented as NONE.

Link copied to clipboard

Represents possible options user can take upon moderating a message.

Link copied to clipboard
data class MyOwn(val ts: Long?) : NewMessageState

If the message is our own (we sent it), we scroll to the bottom of the list.

Link copied to clipboard
sealed class NewMessageState

Represents the state when a new message arrives to the channel.

Link copied to clipboard
data class Other(val ts: Long?) : NewMessageState

If the message is someone else's (we didn't send it), we show a "New message" bubble.

Link copied to clipboard
data class SelectedMessageFailedModerationState(val message: Message, val ownCapabilities: Set<String>) : SelectedMessageState

Represents a state when the moderated message was selected.

Link copied to clipboard
data class SelectedMessageOptionsState(val message: Message, val ownCapabilities: Set<String>) : SelectedMessageState

Represents a state when a message was selected.

Link copied to clipboard
data class SelectedMessageReactionsPickerState(val message: Message, val ownCapabilities: Set<String>) : SelectedMessageState

Represents a state when the show more reactions button was clicked.

Link copied to clipboard
data class SelectedMessageReactionsState(val message: Message, val ownCapabilities: Set<String>) : SelectedMessageState

Represents a state when message reactions were selected.

Link copied to clipboard

Represents a state when a message or its reactions were selected.

Link copied to clipboard

Prompts the user to send the message anyway if the message was flagged by moderation.

Link copied to clipboard
data class SendGiphy(val message: Message) : GiphyAction

Send the selected giphy message to the channel.

Link copied to clipboard
data class ShuffleGiphy(val message: Message) : GiphyAction

Perform the giphy shuffle operation.

Link copied to clipboard

Represents the start of the channel inside a message list.

Link copied to clipboard

Represents a system message inside the message list.

Link copied to clipboard
data class ThreadDateSeparatorItemState(val date: Date, val replyCount: Int) : MessageListItemState

Represents a date separator inside thread messages list.

Link copied to clipboard
data class TypingItemState(val typingUsers: List<User>) : MessageListItemState

Represents a typing indicator item inside a message list.

Link copied to clipboard
data class UnreadSeparatorItemState(val unreadCount: Int) : MessageListItemState

Represents an unread separator item inside a message list.

Inherited functions

Link copied to clipboard

Determines if the user reaction should be aligned to start or end.

Link copied to clipboard

Returns a string representation of the MessageListItemState.