Content

data class Content(val items: List<ChannelAttachmentsViewState.Content.Item> = emptyList(), val canLoadMore: Boolean = true, val isLoadingMore: Boolean = false) : ChannelAttachmentsViewState

Represents the content state of the channel attachments view.

Parameters

items

The list of items to be displayed. Defaults to an empty list.

canLoadMore

True if there are more items to be loaded. Defaults to true.

isLoadingMore

True if the loading of the next page is in progress. Defaults to false.

Constructors

Link copied to clipboard
constructor(items: List<ChannelAttachmentsViewState.Content.Item> = emptyList(), canLoadMore: Boolean = true, isLoadingMore: Boolean = false)

Types

Link copied to clipboard
data class Item(val message: Message, val attachment: Attachment)

Represents a result item in the channel attachments view.

Properties

Link copied to clipboard
val canLoadMore: Boolean = true
Link copied to clipboard
val isLoadingMore: Boolean = false
Link copied to clipboard