ChannelsState

data class ChannelsState(val isLoading: Boolean = true, val isLoadingMore: Boolean = false, val endOfChannels: Boolean = false, val channelItems: List<ItemState> = emptyList(), val searchQuery: SearchQuery = SearchQuery.Empty)

Represents the Channels screen state, used to render the required UI.

Parameters

isLoading

If we're currently loading data (initial load).

isLoadingMore

If we're loading more items (pagination).

endOfChannels

If we've reached the end of channels, to stop triggering pagination.

channelItems

The channel items to represent in the list.

searchQuery

The current search query.

Constructors

Link copied to clipboard
constructor(isLoading: Boolean = true, isLoadingMore: Boolean = false, endOfChannels: Boolean = false, channelItems: List<ItemState> = emptyList(), searchQuery: SearchQuery = SearchQuery.Empty)

Properties

Link copied to clipboard
Link copied to clipboard
val endOfChannels: Boolean = false
Link copied to clipboard
val isLoading: Boolean = true
Link copied to clipboard
val isLoadingMore: Boolean = false
Link copied to clipboard