library / io.getstream.chat.android.livedata.controller / QueryChannelsController

QueryChannelsController

interface QueryChannelsController

The QueryChannelsController is a small helper to show a list of channels

Properties

channels

The list of channels

abstract var channels: LiveData<List<Channel>>

endOfChannels

If we've reached the end of the channels

abstract val endOfChannels: LiveData<Boolean>

filter

The filter used for this query

abstract var filter: FilterObject

loading

If we are currently loading channels

abstract val loading: LiveData<Boolean>

loadingMore

If we are currently loading more channels

abstract val loadingMore: LiveData<Boolean>

newChannelEventFilter

When the NotificationAddedToChannelEvent is triggered the newChannelEventFilter determines if the channel should be added to the query or not. Return true to add the channel, return false to ignore it. By default it will simply add every channel for which this event is received

abstract var newChannelEventFilter: ((Channel, FilterObject) -> Boolean)?

recoveryNeeded

If the API call failed and we need to rerun this query

abstract var recoveryNeeded: Boolean

sort

The sort used for this query

abstract var sort: QuerySort?

Inheritors

QueryChannelsControllerImpl

class QueryChannelsControllerImpl : QueryChannelsController