Channel Query

AmityChannelRepository provides a way to query list of channels using getChannels(with:) method. It receives AmityChannelQuery, and returns an AmityCollection of all the matching channels available.

The returned live collection will automatically update and notify you of any channel modifications.

Channel Filtering

You can filter channels by various criteria such as types, includingTags, excludingTags, includeDeleted channels, etc. All these filters are available in AmityChannelQuery.

All channel type to specify in AmityChannelQuery can be found in AmityChannelQueryType.

Sample Code

If you use a UITableView or UICollectionView to display channel list data, the ideal location to reload table data is directly in the observe block of the live collection that you are displaying.

Last updated