ThreadListState

data class ThreadListState(val threads: List<Thread>, val isLoading: Boolean, val isLoadingMore: Boolean, val unseenThreadsCount: Int, val loadingError: Boolean = false)

Represents the Threads list state, used to render the Threads list UI.

Parameters

threads

The list of loaded Threads.

isLoading

Indicator if the threads are loading.

isLoadingMore

Indicator if there is loading of the next page of threads in progress.

unseenThreadsCount

The number of threads that we know that exist, but are not (yet) loaded in the list.

loadingError

Indicates that the last initial or refresh load failed. Not set for pagination failures.

Constructors

Link copied to clipboard
constructor(threads: List<Thread>, isLoading: Boolean, isLoadingMore: Boolean, unseenThreadsCount: Int, loadingError: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val loadingError: Boolean = false
Link copied to clipboard
Link copied to clipboard