library / io.getstream.chat.android.livedata.usecase / QueryChannelsImpl / invoke

invoke

operator fun invoke(filter: FilterObject, sort: QuerySort?, limit: Int, messageLimit: Int): Call2<QueryChannelsController>

Queries offline storage and the API for channels matching the filter Returns a queryChannelsController

Parameters

filter - the filter object

sort - how to sort the channels (default is last_message_at)

limit - the number of channels to retrieve

messageLimit - how many messages to retrieve per channel

Return
A call object with QueryChannelsController as the return type

See Also

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

io.getstream.chat.android.client.utils.FilterObject

io.getstream.chat.android.client.api.models.QuerySort