-
public final class QueryChannelsController
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classQueryChannelsController.ChannelsState
-
Field Summary
Fields Modifier and Type Field Description private SuspendFunction2<Channel, FilterObject, Boolean>newChannelEventFilterprivate BooleanrecoveryNeededprivate final StateFlow<Boolean>loadingprivate final StateFlow<Boolean>loadingMoreprivate final StateFlow<Boolean>endOfChannelsprivate final StateFlow<List<Channel>>channelsprivate final StateFlow<List<String>>mutedChannelIdsprivate final StateFlow<QueryChannelsController.ChannelsState>channelsStateprivate final FilterObjectfilterprivate final QuerySort<Channel>sort
-
Method Summary
Modifier and Type Method Description final SuspendFunction2<Channel, FilterObject, Boolean>getNewChannelEventFilter()final UnitsetNewChannelEventFilter(SuspendFunction2<Channel, FilterObject, Boolean> newChannelEventFilter)final BooleangetRecoveryNeeded()final UnitsetRecoveryNeeded(Boolean recoveryNeeded)final StateFlow<Boolean>getLoading()final StateFlow<Boolean>getLoadingMore()final StateFlow<Boolean>getEndOfChannels()final StateFlow<List<Channel>>getChannels()final StateFlow<List<String>>getMutedChannelIds()final StateFlow<QueryChannelsController.ChannelsState>getChannelsState()final FilterObjectgetFilter()final QuerySort<Channel>getSort()final UnitrefreshChannel(String cId)refreshes a single channel Note that this only refreshes channels that are already matching with the query It retrieves the data from the current channelController object final Result<List<Channel>>query(Integer channelLimit, Integer messageLimit, Integer memberLimit)-
-
Method Detail
-
getNewChannelEventFilter
final SuspendFunction2<Channel, FilterObject, Boolean> getNewChannelEventFilter()
-
setNewChannelEventFilter
final Unit setNewChannelEventFilter(SuspendFunction2<Channel, FilterObject, Boolean> newChannelEventFilter)
-
getRecoveryNeeded
final Boolean getRecoveryNeeded()
-
setRecoveryNeeded
final Unit setRecoveryNeeded(Boolean recoveryNeeded)
-
getLoading
final StateFlow<Boolean> getLoading()
-
getLoadingMore
final StateFlow<Boolean> getLoadingMore()
-
getEndOfChannels
final StateFlow<Boolean> getEndOfChannels()
-
getChannels
final StateFlow<List<Channel>> getChannels()
-
getMutedChannelIds
final StateFlow<List<String>> getMutedChannelIds()
-
getChannelsState
final StateFlow<QueryChannelsController.ChannelsState> getChannelsState()
-
getFilter
final FilterObject getFilter()
-
getSort
final QuerySort<Channel> getSort()
-
refreshChannel
final Unit refreshChannel(String cId)
refreshes a single channel Note that this only refreshes channels that are already matching with the query It retrieves the data from the current channelController object
- Parameters:
cId- the channel to updateIf you want to add to the list of channels use the addToQueryResult method
-
-
-
-