Filter channel list
You can statically filter a channel list when retrieving them by creating custom instances of
GroupChannelListQuery. Currently, dynamic filtering is not supported. To change the filtering criteria, you must recreate
Set GroupChannelListQuery within ViewModel
ChannelListViewModel is responsible for retrieving and managing a channel list. You can filter a channel list by modifying the properties of
To apply a filter, inherit from
ChannelListViewModel and implement the
createGroupChannelListQuery() method. If you call the
super.createGroupChannelListQuery() method, you can utilize the default
Set GroupChannelListQuery using fragment builder
ChannelListFragment.Builder also provides an interface to customize the
GroupChannelListQuery. In this case, however, the default setting used by the UIKit can't be retrieved.
For an in-depth practical demonstration, see our sample code.