public final class GroupChannelCollection
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GroupChannelCollection.Builder
A builder to create the
GroupChannelCollection. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes current
GroupChannelCollection and stops all events from being received. |
java.util.List<GroupChannel> |
getChannelList()
Returns
List of total channel list. |
java.util.Comparator<GroupChannel> |
getComparator()
Returns a new
Comparator for sorting group channels using the GroupChannelListQuery.Order set in this collection. |
static java.util.Comparator<GroupChannel> |
getGroupChannelComparator(GroupChannelListQuery.Order groupChannelListQueryOrder)
Returns a new
Comparator for sorting group channels using the GroupChannelListQuery.Order. |
boolean |
hasMore()
Returns whether there's more data to load.
|
void |
loadMore(OnChannelLoadResultHandler handler)
Loads next channel lists, depending on the
GroupChannelListQuery.Order set in the current collection. |
void |
setGroupChannelCollectionHandler(GroupChannelCollectionHandler handler)
Sets the channel collection handler to be used for this
GroupChannelCollection. |
public java.util.List<GroupChannel> getChannelList()
List of total channel list.List.public boolean hasMore()
public void dispose()
GroupChannelCollection and stops all events from being received.public void loadMore(OnChannelLoadResultHandler handler)
GroupChannelListQuery.Order set in the current collection.handler - OnChannelLoadResultHandler to receive the next channel list.public void setGroupChannelCollectionHandler(GroupChannelCollectionHandler handler)
GroupChannelCollection.handler - GroupChannelCollectionHandler.public java.util.Comparator<GroupChannel> getComparator()
Comparator for sorting group channels using the GroupChannelListQuery.Order set in this collection.GroupChannelListQuery.Order,
GroupChannel.compareTo(GroupChannel, GroupChannel, GroupChannelListQuery.Order, SortOrder)public static java.util.Comparator<GroupChannel> getGroupChannelComparator(GroupChannelListQuery.Order groupChannelListQueryOrder)
Comparator for sorting group channels using the GroupChannelListQuery.Order.groupChannelListQueryOrder - GroupChannelListQuery.Order to be used in sorting group channels.GroupChannelListQuery.Order,
GroupChannel.compareTo(GroupChannel, GroupChannel, GroupChannelListQuery.Order, SortOrder) Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.