QueryChannelsState

Contains a state related to a single query channels request.

Properties

Link copied to clipboard
abstract val channels: StateFlow<List<Channel>?>

The collection of channels loaded by the query channels request. The StateFlow is initialized with null which means that channels are not loaded yet.

Link copied to clipboard
abstract val channelsStateData: StateFlow<ChannelsStateData>

The channels loaded state. See ChannelsStateData.

Link copied to clipboard

Factory that produces ChatEventHandler, which decides whether the set of channels should be updated.

Link copied to clipboard
abstract val currentRequest: StateFlow<QueryChannelsRequest?>

The request for the current page.

Link copied to clipboard
abstract val endOfChannels: StateFlow<Boolean>

If the current state reached the final page.

Link copied to clipboard
abstract val filter: FilterObject

The filter is associated with this query channels state.

Link copied to clipboard
abstract val loading: StateFlow<Boolean>

If the current state is being loaded.

Link copied to clipboard
abstract val loadingMore: StateFlow<Boolean>

If the current state is loading more channels (a next page is being loaded).

Link copied to clipboard
abstract val nextPageRequest: StateFlow<QueryChannelsRequest?>

The request for the next page, if there is a page.

Link copied to clipboard
abstract val recoveryNeeded: StateFlow<Boolean>

If the channels need to be synced.

Link copied to clipboard
abstract val sort: QuerySorter<Channel>

The sort object which requested for this query channels state.