Package 

Interface QueryChannelsState


  • 
    public interface QueryChannelsState
    
                        

    Contains a state related to a single query channels request.

    • Method Detail

      • getFilter

         abstract FilterObject getFilter()

        The filter associated with this query channels state.

        For grouped queries (states keyed by QueryChannelsIdentifier.Grouped), this is a placeholder (io.getstream.chat.android.models.Filters.neutral) — grouped lists are partitioned server-side and do not have a client-side filter. Do not rely on this value for grouped states.

      • getSort

         abstract QuerySorter<Channel> getSort()

        The sort associated with this query channels state.

        For grouped queries (states keyed by QueryChannelsIdentifier.Grouped), this is a placeholder (last_updated descending) — grouped lists are ordered server-side and do not have a client-side sort. Do not rely on this value for grouped states.

      • getCurrentRequest

         abstract StateFlow<QueryChannelsRequest> getCurrentRequest()

        The request for the current page.

      • getNextPageRequest

         abstract StateFlow<QueryChannelsRequest> getNextPageRequest()

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

      • getLoading

         abstract StateFlow<Boolean> getLoading()

        If the current state is being loaded.

      • getLoadingMore

         abstract StateFlow<Boolean> getLoadingMore()

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

      • getNextCursor

         abstract StateFlow<String> getNextCursor()

        Cursor for the next page when this state belongs to a grouped query. null means there is no further page (or that this is a standard query that doesn't use cursors).

      • getChannels

         abstract StateFlow<List<Channel>> getChannels()

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