MentionListState

data class MentionListState(val isLoading: Boolean = true, val results: List<MessageResult> = emptyList(), nextPage: String? = null, val canLoadMore: Boolean = true, val isLoadingMore: Boolean = false, val isRefreshing: Boolean = false)

The state of the mention list on which the UI should be rendered.

Parameters

isLoading

True if the initial loading is in progress. Defaults to true.

results

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

nextPage

The next page token to be loaded (Internal usage only). Defaults to null.

canLoadMore

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

isLoadingMore

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

isRefreshing

True if the mention list is being refreshed. Defaults to false.

Constructors

Link copied to clipboard
constructor(isLoading: Boolean = true, results: List<MessageResult> = emptyList(), nextPage: String? = null, canLoadMore: Boolean = true, isLoadingMore: Boolean = false, isRefreshing: Boolean = false)

Properties

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