public final class GroupChannel extends BaseChannel
Modifier and Type | Class and Description |
---|---|
static class |
GroupChannel.CountPreference
The count preference.
|
static interface |
GroupChannel.GroupChannelAcceptInvitationHandler
GroupChannelAcceptInvitation handler.
|
static interface |
GroupChannel.GroupChannelBanHandler
GroupChannelBan handler.
|
static interface |
GroupChannel.GroupChannelChannelCountHandler
GroupChannelChannelCount handler.
|
static interface |
GroupChannel.GroupChannelCreateDistinctChannelIfNotExistHandler
GroupChannelCreateDistinctChannelIfNotExist handler.
|
static interface |
GroupChannel.GroupChannelCreateHandler
GroupChannelCreate handler.
|
static interface |
GroupChannel.GroupChannelDeclineInvitationHandler
GroupChannelDeclineInvitation handler.
|
static interface |
GroupChannel.GroupChannelDeleteHandler
GroupChannelDelete handler.
|
static interface |
GroupChannel.GroupChannelFreezeHandler
GroupChannelFreeze handler.
|
static interface |
GroupChannel.GroupChannelGetHandler
GroupChannelGet handler.
|
static interface |
GroupChannel.GroupChannelGetMyPushTriggerOptionHandler
GroupChannelGetMyPushTriggerOptionHandler handler.
|
static interface |
GroupChannel.GroupChannelGetPushPreferenceHandler
Deprecated.
As of 3.0.10, refer to
isPushEnabled() . |
static interface |
GroupChannel.GroupChannelGetUnreadItemCountHandler
GroupChannelGetUnreadItemCountHandler handler.
|
static interface |
GroupChannel.GroupChannelHideHandler
GroupChannelHide handler.
|
static interface |
GroupChannel.GroupChannelInviteHandler
GroupChannelInvite handler.
|
static interface |
GroupChannel.GroupChannelJoinHandler
GroupChannelJoin handler.
|
static interface |
GroupChannel.GroupChannelLeaveHandler
GroupChannelLeave handler.
|
static interface |
GroupChannel.GroupChannelMarkAsReadHandler
Deprecated.
As of 3.0.48, replaced by
SendBird.MarkAsReadHandler . |
static interface |
GroupChannel.GroupChannelMuteHandler
GroupChannelMute handler.
|
static interface |
GroupChannel.GroupChannelRefreshHandler
GroupChannelRefresh handler.
|
static interface |
GroupChannel.GroupChannelResetMyHistoryHandler
GroupChannelResetMyHistory handler.
|
static interface |
GroupChannel.GroupChannelSetMyCountPreferenceHandler
GroupChannelSetMyCountPreference handler.
|
static interface |
GroupChannel.GroupChannelSetMyPushTriggerOptionHandler
GroupChannelSetMyPushTriggerOptionHandler handler.
|
static interface |
GroupChannel.GroupChannelSetPushPreferenceHandler
GroupChannelSetPushPreference handler.
|
static interface |
GroupChannel.GroupChannelTotalUnreadChannelCountHandler
GroupChannelTotalUnreadChannelCount handler.
|
static interface |
GroupChannel.GroupChannelTotalUnreadMessageCountHandler
GroupChannelTotalUnreadMessageCount handler.
|
static interface |
GroupChannel.GroupChannelUnbanHandler
GroupChannelUnban handler.
|
static interface |
GroupChannel.GroupChannelUnfreezeHandler
GroupChannelUnfreeze handler.
|
static interface |
GroupChannel.GroupChannelUnhideHandler
GroupChannelUnhide handler.
|
static interface |
GroupChannel.GroupChannelUnmuteHandler
GroupChannelUnmute handler.
|
static interface |
GroupChannel.GroupChannelUpdateHandler
GroupChannelUpdate handler.
|
static class |
GroupChannel.HiddenState
The hidden state.
|
static class |
GroupChannel.MemberState
Deprecated.
As of 3.0.52, replaced by
GroupChannelListQuery.MemberStateFilter . |
static class |
GroupChannel.PushTriggerOption
The push trigger option.
|
static interface |
GroupChannel.RegisterScheduledUserMessageHandler
RegisterScheduledUserMessage handler.
|
static class |
GroupChannel.UnreadItemKey
The unread item key.
|
BaseChannel.BaseSendFileMessageHandler, BaseChannel.ChannelType, BaseChannel.CopyFileMessageHandler, BaseChannel.CopyUserMessageHandler, BaseChannel.DeleteMessageHandler, BaseChannel.DeleteMetaCounterHandler, BaseChannel.DeleteMetaDataHandler, BaseChannel.GetMessageChangeLogsByTokenHandler, BaseChannel.GetMessageChangeLogsHandler, BaseChannel.GetMessagesHandler, BaseChannel.GetMyMutedInfoHandler, BaseChannel.MessageMetaArrayHandler, BaseChannel.MessageTypeFilter, BaseChannel.MetaCounterHandler, BaseChannel.MetaDataHandler, BaseChannel.ReactionHandler, BaseChannel.ReportCategory, BaseChannel.ReportHandler, BaseChannel.ReportMessageHandler, BaseChannel.ReportUserHandler, BaseChannel.ResendFileMessageHandler, BaseChannel.ResendFileMessageWithProgressHandler, BaseChannel.ResendUserMessageHandler, BaseChannel.SendFileMessageHandler, BaseChannel.SendFileMessagesHandler, BaseChannel.SendFileMessagesWithProgressHandler, BaseChannel.SendFileMessageWithProgressHandler, BaseChannel.SendUserMessageHandler, BaseChannel.TranslateUserMessageHandler, BaseChannel.UpdateFileMessageHandler, BaseChannel.UpdateUserMessageHandler
Modifier and Type | Method and Description |
---|---|
void |
acceptInvitation(GroupChannel.GroupChannelAcceptInvitationHandler handler)
Accepts the invitation sent to the current
User . |
void |
acceptInvitation(java.lang.String accessCode,
GroupChannel.GroupChannelAcceptInvitationHandler handler)
Accepts the invitation sent to the current
User . |
void |
banUser(User user,
java.lang.String description,
int seconds,
GroupChannel.GroupChannelBanHandler handler)
Bans a member.
|
void |
banUserWithUserId(java.lang.String userId,
java.lang.String description,
int seconds,
GroupChannel.GroupChannelBanHandler handler)
Bans a member.
|
static GroupChannel |
clone(GroupChannel channel)
Clones and returns a new instance of given GroupChannel
|
static int |
compareTo(GroupChannel c1,
GroupChannel c2,
GroupChannelListQuery.Order order)
Deprecated.
As of 3.0.173, replaced by
compareTo(GroupChannel, GroupChannel, GroupChannelListQuery.Order, SortOrder) . |
static int |
compareTo(GroupChannel c1,
GroupChannel c2,
GroupChannelListQuery.Order queryOrder,
SortOrder sortOrder)
Compares two given channels and returns 0, -1 or 1 depending on their comparison results.
|
BannedUserListQuery |
createBannedUserListQuery()
Creates a query instance to get the banned user list from this channel.
|
static void |
createChannel(GroupChannelParams params,
GroupChannel.GroupChannelCreateHandler handler)
Creates
GroupChannel with GroupChannelParams. |
static void |
createChannel(java.util.List<User> users,
boolean isDistinct,
GroupChannel.GroupChannelCreateHandler handler)
Creates
GroupChannel with given User s. |
static void |
createChannel(java.util.List<User> users,
boolean isDistinct,
java.lang.String name,
java.lang.Object coverUrlOrImage,
java.lang.String data,
GroupChannel.GroupChannelCreateHandler handler)
Deprecated.
As of 3.0.75, replaced by
createChannel(GroupChannelParams, GroupChannelCreateHandler) |
static void |
createChannel(java.util.List<User> users,
boolean isDistinct,
java.lang.String name,
java.lang.Object coverUrlOrImage,
java.lang.String data,
java.lang.String customType,
GroupChannel.GroupChannelCreateHandler handler)
Creates
GroupChannel with given User s. |
static void |
createChannelWithUserIds(java.util.List<java.lang.String> userIds,
boolean isDistinct,
GroupChannel.GroupChannelCreateHandler handler)
Creates
GroupChannel with given User IDs. |
static void |
createChannelWithUserIds(java.util.List<java.lang.String> userIds,
boolean isDistinct,
java.lang.String name,
java.lang.Object coverUrlOrImage,
java.lang.String data,
GroupChannel.GroupChannelCreateHandler handler)
Deprecated.
As of 3.0.75, replaced by
createChannel(GroupChannelParams, GroupChannelCreateHandler) |
static void |
createChannelWithUserIds(java.util.List<java.lang.String> userIds,
boolean isDistinct,
java.lang.String name,
java.lang.Object coverUrlOrImage,
java.lang.String data,
java.lang.String customType,
GroupChannel.GroupChannelCreateHandler handler)
Creates
GroupChannel with given User IDs. |
static void |
createDistinctChannelIfNotExist(GroupChannelParams params,
GroupChannel.GroupChannelCreateDistinctChannelIfNotExistHandler handler)
Creates distinct
GroupChannel with GroupChannelParams. |
GroupChannelMemberListQuery |
createMemberListQuery()
Creates a query instance to get members.
|
static GroupChannelListQuery |
createMyGroupChannelListQuery()
Creates a query instance to get
GroupChannel s the current User has joined. |
static PublicGroupChannelListQuery |
createPublicGroupChannelListQuery()
Creates a query instance to get public
GroupChannel s. |
void |
declineInvitation(GroupChannel.GroupChannelDeclineInvitationHandler handler)
Declines the invitation sent to the current
User . |
void |
delete(GroupChannel.GroupChannelDeleteHandler handler)
Deletes this
GroupChannel . |
void |
endTyping()
Sends end typing event.
|
void |
freeze(GroupChannel.GroupChannelFreezeHandler handler)
Freeze this
GroupChannel . |
static void |
getChannel(java.lang.String channelUrl,
GroupChannel.GroupChannelGetHandler handler)
Gets a
GroupChannel with given channel URL. |
static void |
getChannelCount(GroupChannel.MemberState memberState,
GroupChannel.GroupChannelChannelCountHandler handler)
Deprecated.
As of 3.0.52, replaced by
getChannelCount(GroupChannelListQuery.MemberStateFilter, GroupChannelChannelCountHandler) . |
static void |
getChannelCount(GroupChannelListQuery.MemberStateFilter memberStateFilter,
GroupChannel.GroupChannelChannelCountHandler handler)
Deprecated.
|
User |
getCreator()
Retrieves the creator of this channel.
|
java.lang.String |
getCustomType()
Gets the channel custom type.
|
int |
getDeliveryReceipt(BaseMessage message)
Deprecated.
As of 3.0.136, replaced by
getUndeliveredMemberCount(BaseMessage) . |
GroupChannel.HiddenState |
getHiddenState()
Gets hidden state of this channel.
|
long |
getInvitedAt()
Gets my invitation timestamp.
|
User |
getInviter()
Gets the inviter of the current
User to this channel. |
long |
getJoinedAt()
Gets the timestamp when the current user joined.
|
int |
getJoinedMemberCount()
Gets the total joined member count for this channel.
|
BaseMessage |
getLastMessage()
Gets the last message.
|
long |
getLastSeenAtBy(User user)
Deprecated.
As of 3.0.49, this method is deprecated.
|
long |
getLastSeenAtByWithUserId(java.lang.String userId)
Deprecated.
As of 3.0.49, this method is deprecated.
|
BaseMessage |
getLatestPinnedMessage() |
int |
getMemberCount()
Gets the total member count for this channel.
|
java.util.List<Member> |
getMembers()
Gets member list for this channel.
|
long |
getMessageOffsetTimestamp()
This property is set when
resetMyHistory(GroupChannelResetMyHistoryHandler) ()} and hide(boolean, GroupChannelHideHandler) ()} is called. |
int |
getMessageSurvivalSeconds()
Gets the message survival seconds in this channel.
|
GroupChannel.CountPreference |
getMyCountPreference()
Checks if unread message count is enabled for this channel.
|
long |
getMyLastRead()
Returns current user's last read receipt timestamp in channel.
|
Member.MemberState |
getMyMemberState()
Gets my member state.
|
Member.MutedState |
getMyMutedState()
Gets my muted state in this channel.
|
GroupChannel.PushTriggerOption |
getMyPushTriggerOption()
Gets my push trigger option.
|
void |
getMyPushTriggerOption(GroupChannel.GroupChannelGetMyPushTriggerOptionHandler handler)
Gets push trigger option of this channel.
|
Member.Role |
getMyRole()
Gets my role in this channel.
|
java.util.List<java.lang.Long> |
getPinnedMessageIds() |
void |
getPushPreference(GroupChannel.GroupChannelGetPushPreferenceHandler handler)
Deprecated.
As of 3.0.10, replaced by
isPushEnabled() . |
java.util.List<Member> |
getReadMembers(BaseMessage message)
Deprecated.
As of 3.0.75, replaced by
getReadMembers(BaseMessage, boolean) . |
java.util.List<Member> |
getReadMembers(BaseMessage message,
boolean includeAllMembers)
Gets the member list who have read the given message.
|
int |
getReadReceipt(BaseMessage message)
Deprecated.
As of 3.0.136, replaced by
getUnreadMemberCount(BaseMessage) . |
java.util.Map<java.lang.String,ReadStatus> |
getReadStatus()
Deprecated.
As of 3.0.75, replaced by
getReadStatus(boolean) . |
java.util.Map<java.lang.String,ReadStatus> |
getReadStatus(boolean includeAllMembers)
Gets
ReadStatus for all members in this GroupChannel . |
static void |
getTotalUnreadChannelCount(GroupChannel.GroupChannelTotalUnreadChannelCountHandler handler)
Deprecated.
As of 3.0.75, replaced by
SendBird.getTotalUnreadChannelCount(GroupChannel.GroupChannelTotalUnreadChannelCountHandler) . |
static void |
getTotalUnreadMessageCount(GroupChannel.GroupChannelTotalUnreadMessageCountHandler handler)
Deprecated.
As of 3.0.75, replaced by
SendBird.getTotalUnreadMessageCount(GroupChannel.GroupChannelTotalUnreadMessageCountHandler) . |
static void |
getTotalUnreadMessageCount(GroupChannelTotalUnreadMessageCountParams params,
GroupChannel.GroupChannelTotalUnreadMessageCountHandler handler)
Deprecated.
|
static void |
getTotalUnreadMessageCount(java.util.List<java.lang.String> channelCustomTypes,
GroupChannel.GroupChannelTotalUnreadMessageCountHandler handler)
Deprecated.
As of 3.0.75, replaced by
SendBird.getTotalUnreadMessageCount(List, GroupChannel.GroupChannelTotalUnreadMessageCountHandler) . |
java.util.List<Member> |
getTypingMembers()
Deprecated.
As of 3.0.145, replaced by
getTypingUsers() . |
java.util.List<User> |
getTypingUsers()
Gets typing user list.
|
int |
getUndeliveredMemberCount(BaseMessage message)
Returns how many members haven't delivered the given message.
|
static void |
getUnreadItemCount(java.util.Collection<GroupChannel.UnreadItemKey> keys,
GroupChannel.GroupChannelGetUnreadItemCountHandler handler)
Deprecated.
As of 3.0.75, replaced by
SendBird.getUnreadItemCount(Collection, GroupChannel.GroupChannelGetUnreadItemCountHandler) . |
int |
getUnreadMemberCount(BaseMessage message)
Returns how many members haven't read the given message.
|
java.util.List<Member> |
getUnreadMembers(BaseMessage message)
Deprecated.
As of 3.0.75, replaced by
getUnreadMembers(BaseMessage, boolean) . |
java.util.List<Member> |
getUnreadMembers(BaseMessage message,
boolean includeAllMembers)
Gets the member list who haven't read the given message.
|
int |
getUnreadMentionCount()
Gets the unread mention count for this channel for the current
User . |
int |
getUnreadMessageCount()
Gets the unread message count for this channel for the current
User . |
void |
hide(boolean hidePreviousMessages,
boolean allowAutoUnhide,
GroupChannel.GroupChannelHideHandler handler)
Hides this channel from the current
User 's GroupChannel list. |
void |
hide(boolean hidePreviousMessages,
GroupChannel.GroupChannelHideHandler handler)
Hides this channel from the current
User 's GroupChannel list. |
void |
hide(GroupChannel.GroupChannelHideHandler handler)
Hides this channel from the current
User 's GroupChannel list. |
void |
invite(java.util.List<User> users,
GroupChannel.GroupChannelInviteHandler handler)
Invites
User s to this channel. |
void |
invite(User user,
GroupChannel.GroupChannelInviteHandler handler)
Invites a
User to this channel. |
void |
inviteWithUserId(java.lang.String userId,
GroupChannel.GroupChannelInviteHandler handler)
Invites a
User to this channel. |
void |
inviteWithUserIds(java.util.List<java.lang.String> userIds,
GroupChannel.GroupChannelInviteHandler handler)
Invites
User s top this channel. |
boolean |
isAccessCodeRequired()
Checks if this channel requires access code to join.
|
boolean |
isBroadcast()
Checks this channel is a broadcast
GroupChannel . |
boolean |
isDiscoverable()
Checks this channel is discoverable in the result of
PublicGroupChannelListQuery . |
boolean |
isDistinct()
Checks this channel is a distinct
GroupChannel . |
boolean |
isHidden()
Checks if this channel is hidden.
|
boolean |
isPublic()
Checks this channel is a public
GroupChannel . |
boolean |
isPushEnabled()
Deprecated.
As of 3.0.86, replaced by
getMyPushTriggerOption() . |
boolean |
isSuper()
Checks this channel is a super
GroupChannel . |
boolean |
isTyping()
Checks if one or more members are typing.
|
void |
join(GroupChannel.GroupChannelJoinHandler handler)
Joins this channel if this channel is public.
|
void |
join(java.lang.String accessCode,
GroupChannel.GroupChannelJoinHandler handler)
Joins this channel if this channel is public.
|
void |
leave(GroupChannel.GroupChannelLeaveHandler handler)
Leaves this channel.
|
void |
markAsDelivered()
Deprecated.
As of 3.0.150, replaced by
SendBird.markAsDelivered(Map) . |
void |
markAsRead()
Deprecated.
As of 3.0.172, replaced by
markAsRead(SendBird.MarkAsReadHandler) . |
void |
markAsRead(SendBird.MarkAsReadHandler handler)
Sends mark as read to this channel with a
SendBird.MarkAsReadHandler . |
static void |
markAsReadAll(GroupChannel.GroupChannelMarkAsReadHandler handler)
Deprecated.
As of 3.0.48, replaced by
SendBird.markAsReadAll(SendBird.MarkAsReadHandler) . |
void |
muteUser(User user,
GroupChannel.GroupChannelMuteHandler handler)
Mutes
User . |
void |
muteUser(User user,
java.lang.String description,
int seconds,
GroupChannel.GroupChannelMuteHandler handler)
Mutes
User . |
void |
muteUserWithUserId(java.lang.String userId,
GroupChannel.GroupChannelMuteHandler handler)
Mutes
User . |
void |
muteUserWithUserId(java.lang.String userId,
java.lang.String description,
int seconds,
GroupChannel.GroupChannelMuteHandler handler)
Mutes
User . |
void |
refresh(GroupChannel.GroupChannelRefreshHandler handler)
Refreshes all the data of this channel.
|
void |
registerScheduledUserMessage(ScheduledUserMessageParams params,
GroupChannel.RegisterScheduledUserMessageHandler handler)
This method registers a user message to be sent at the specified time.
|
void |
resetMyHistory(GroupChannel.GroupChannelResetMyHistoryHandler handler)
Resets the chat history of this channel for the current User.
|
void |
setMyCountPreference(GroupChannel.CountPreference preference,
GroupChannel.GroupChannelSetMyCountPreferenceHandler handler)
Sets my count preference for this channel.
|
void |
setMyPushTriggerOption(GroupChannel.PushTriggerOption pushTriggerOption,
GroupChannel.GroupChannelSetMyPushTriggerOptionHandler handler)
Sets push trigger option of this channel.
|
void |
setPushPreference(boolean pushOn,
GroupChannel.GroupChannelSetPushPreferenceHandler handler)
Deprecated.
As of 3.0.151, replaced by
setMyPushTriggerOption(PushTriggerOption, GroupChannelSetMyPushTriggerOptionHandler) . |
void |
startTyping()
Sends start typing event.
|
java.lang.String |
toString() |
void |
unbanUser(User user,
GroupChannel.GroupChannelUnbanHandler handler)
Unbans
User . |
void |
unbanUserWithUserId(java.lang.String userId,
GroupChannel.GroupChannelUnbanHandler handler)
Unbans
User . |
void |
unfreeze(GroupChannel.GroupChannelUnfreezeHandler handler)
Unfreeze this
GroupChannel . |
void |
unhide(GroupChannel.GroupChannelUnhideHandler handler)
Unhides this channel from the current
User 's GroupChannel list. |
void |
unmuteUser(User user,
GroupChannel.GroupChannelUnmuteHandler handler)
Unmutes
User . |
void |
unmuteUserWithUserId(java.lang.String userId,
GroupChannel.GroupChannelUnmuteHandler handler)
Unmutes
User . |
void |
updateChannel(boolean isDistinct,
java.lang.String name,
java.lang.Object coverUrlOrImage,
java.lang.String data,
GroupChannel.GroupChannelUpdateHandler handler)
Deprecated.
As of 3.0.75, replaced by
updateChannel(GroupChannelParams, GroupChannelUpdateHandler) |
void |
updateChannel(boolean isDistinct,
java.lang.String name,
java.lang.Object coverUrlOrImage,
java.lang.String data,
java.lang.String customType,
GroupChannel.GroupChannelUpdateHandler handler)
Update this channel.
|
void |
updateChannel(GroupChannelParams params,
GroupChannel.GroupChannelUpdateHandler handler)
Update this channel with GroupChannelParams.
|
void |
updateChannel(java.lang.String name,
java.lang.Object coverUrlOrImage,
java.lang.String data,
GroupChannel.GroupChannelUpdateHandler handler)
Update this channel.
|
addMessageMetaArrayValues, addMessageMetaArrayValues, addOperators, addReaction, buildFromSerializedData, cancelFileMessageUpload, copyFileMessage, copyUserMessage, createMessageListQuery, createMessageMetaArrayKeys, createMetaCounters, createMetaData, createOperatorListQuery, createPreviousMessageListQuery, decreaseMetaCounters, deleteAllMetaCounters, deleteAllMetaData, deleteMessage, deleteMessageMetaArrayKeys, deleteMetaCounter, deleteMetaData, deleteReaction, equals, getAllMetaCounters, getAllMetaData, getCachedMetaData, getCoverUrl, getCreatedAt, getData, getMessageChangeLogsByTimestamp, getMessageChangeLogsByTimestamp, getMessageChangeLogsByTimestamp, getMessageChangeLogsByToken, getMessageChangeLogsByToken, getMessageChangeLogsByToken, getMessageChangeLogsSinceTimestamp, getMessageChangeLogsSinceToken, getMessagesByMessageId, getMessagesByTimestamp, getMetaCounters, getMetaData, getMyMutedInfo, getName, getNextMessagesById, getNextMessagesById, getNextMessagesById, getNextMessagesById, getNextMessagesByTimestamp, getNextMessagesByTimestamp, getNextMessagesByTimestamp, getNextMessagesByTimestamp, getPreviousAndNextMessagesById, getPreviousAndNextMessagesById, getPreviousAndNextMessagesById, getPreviousAndNextMessagesById, getPreviousAndNextMessagesByTimestamp, getPreviousAndNextMessagesByTimestamp, getPreviousAndNextMessagesByTimestamp, getPreviousAndNextMessagesByTimestamp, getPreviousMessagesById, getPreviousMessagesById, getPreviousMessagesById, getPreviousMessagesById, getPreviousMessagesByTimestamp, getPreviousMessagesByTimestamp, getPreviousMessagesByTimestamp, getPreviousMessagesByTimestamp, getUrl, hashCode, increaseMetaCounters, isEphemeral, isFrozen, isGroupChannel, isOpenChannel, removeAllOperators, removeMessageMetaArrayValues, removeMessageMetaArrayValues, removeOperators, report, reportMessage, reportUser, resendFileMessage, resendFileMessage, resendMessage, resendMessage, resendMessage, resendUserMessage, sendFileMessage, sendFileMessage, sendFileMessage, sendFileMessage, sendFileMessage, sendFileMessage, sendFileMessage, sendFileMessage, sendFileMessage, sendFileMessage, sendFileMessages, sendFileMessages, sendUserMessage, sendUserMessage, sendUserMessage, sendUserMessage, sendUserMessage, serialize, translateUserMessage, updateFileMessage, updateFileMessage, updateMetaCounters, updateMetaData, updateUserMessage, updateUserMessage
public void refresh(GroupChannel.GroupChannelRefreshHandler handler)
handler
- Callback handler.public static GroupChannelListQuery createMyGroupChannelListQuery()
GroupChannel
s the current User
has joined.public static PublicGroupChannelListQuery createPublicGroupChannelListQuery()
GroupChannel
s.public static void createChannel(java.util.List<User> users, boolean isDistinct, GroupChannel.GroupChannelCreateHandler handler)
GroupChannel
with given User
s.users
- User
s to join.isDistinct
- If set true, a distinct GroupChannel
is created.
So later when you create GroupChannel
with same User
s and this flag being true
,
the channel URL does not change, which means the messages between User
s remain at the channel.GroupChannel
is created even though User
s are same.
As a result, you get a totally new channel URL (the old channel still remains), which means the User
s start new conversation.handler
- Callback handler.@Deprecated public static void createChannel(java.util.List<User> users, boolean isDistinct, java.lang.String name, java.lang.Object coverUrlOrImage, java.lang.String data, GroupChannel.GroupChannelCreateHandler handler) throws java.lang.ClassCastException
createChannel(GroupChannelParams, GroupChannelCreateHandler)
GroupChannel
with given User
s.users
- User
s to join.isDistinct
- If set true, a distinct GroupChannel
is created.
So later when you create GroupChannel
with same User
s and this flag being true
,
the channel URL does not change, which means the messages between User
s remain at the channel.GroupChannel
is created even though User
s are same.
As a result, you get a totally new channel URL (the old channel still remains), which means the User
s start new conversation.name
- Name of channel.coverUrlOrImage
- Cover URL or image file of channel. Pass String
, File
or null
only, throws exception otherwise.
This can be used as thumbnail of channel for instance.data
- Custom data for channel.handler
- Callback handler.java.lang.ClassCastException
- If coverUrlOrImage
is none of String
, File
or null
, exception occurs.public static void createChannel(java.util.List<User> users, boolean isDistinct, java.lang.String name, java.lang.Object coverUrlOrImage, java.lang.String data, java.lang.String customType, GroupChannel.GroupChannelCreateHandler handler) throws java.lang.ClassCastException
GroupChannel
with given User
s.users
- User
s to join.isDistinct
- If set true, a distinct GroupChannel
is created.
So later when you create GroupChannel
with same User
s and this flag being true
,
the channel URL does not change, which means the messages between User
s remain at the channel.GroupChannel
is created even though User
s are same.
As a result, you get a totally new channel URL (the old channel still remains), which means the User
s start new conversation.name
- Name of channel.coverUrlOrImage
- Cover URL or image file of channel. Pass String
, File
or null
only, throws exception otherwise.
This can be used as thumbnail of channel for instance.data
- Custom data for channel.customType
- Custom type for channel.handler
- Callback handler.java.lang.ClassCastException
- If coverUrlOrImage
is none of String
, File
or null
, exception occurs.public static void createChannelWithUserIds(java.util.List<java.lang.String> userIds, boolean isDistinct, GroupChannel.GroupChannelCreateHandler handler)
GroupChannel
with given User
IDs.userIds
- User
IDs to join.isDistinct
- If set true, a distinct GroupChannel
is created.
So later when you create GroupChannel
with same User
s and this flag being true
,
the channel URL does not change, which means the messages between User
s remain at the channel.GroupChannel
is created even though User
s are same.
As a result, you get a totally new channel URL (the old channel still remains), which means the User
s start new conversation.handler
- Callback handler.@Deprecated public static void createChannelWithUserIds(java.util.List<java.lang.String> userIds, boolean isDistinct, java.lang.String name, java.lang.Object coverUrlOrImage, java.lang.String data, GroupChannel.GroupChannelCreateHandler handler) throws java.lang.ClassCastException
createChannel(GroupChannelParams, GroupChannelCreateHandler)
GroupChannel
with given User
IDs.userIds
- User
IDs to join.isDistinct
- If set true, a distinct GroupChannel
is created.
So later when you create GroupChannel
with same User
s and this flag being true
,
the channel URL does not change, which means the messages between User
s remain at the channel.GroupChannel
is created even though User
s are same.
As a result, you get a totally new channel URL (the old channel still remains), which means the User
s start new conversation.name
- Name of channel.coverUrlOrImage
- Cover URL or image file of channel. Pass String
, File
or null
only, throws exception otherwise.
This can be used as thumbnail of channel for instance.data
- Custom data for channel.handler
- Callback handler.java.lang.ClassCastException
- If coverUrlOrImage
is none of String
, File
or null
, exception occurs.public static void createChannelWithUserIds(java.util.List<java.lang.String> userIds, boolean isDistinct, java.lang.String name, java.lang.Object coverUrlOrImage, java.lang.String data, java.lang.String customType, GroupChannel.GroupChannelCreateHandler handler) throws java.lang.ClassCastException
GroupChannel
with given User
IDs.userIds
- User
IDs to join.isDistinct
- If set true, a distinct GroupChannel
is created.
So later when you create GroupChannel
with same User
s and this flag being true
,
the channel URL does not change, which means the messages between User
s remain at the channel.GroupChannel
is created even though User
s are same.
As a result, you get a totally new channel URL (the old channel still remains), which means the User
s start new conversation.name
- Name of channel.coverUrlOrImage
- Cover URL or image file of channel. Pass String
, File
or null
only, throws exception otherwise.
This can be used as thumbnail of channel for instance.data
- Custom data for channel.customType
- Custom type for channel.handler
- Callback handler.java.lang.ClassCastException
- If coverUrlOrImage
is none of String
, File
or null
, exception occurs.public static void createChannel(GroupChannelParams params, GroupChannel.GroupChannelCreateHandler handler) throws java.lang.ClassCastException
GroupChannel
with GroupChannelParams.params
- Params of channel. Refer to GroupChannelParams
.handler
- Callback handler.java.lang.ClassCastException
public static void createDistinctChannelIfNotExist(GroupChannelParams params, GroupChannel.GroupChannelCreateDistinctChannelIfNotExistHandler handler) throws java.lang.ClassCastException
GroupChannel
with GroupChannelParams.
When this method is executed, GroupChannelParams.setDistinct(boolean)
will be ignored.params
- Params of channel. Refer to GroupChannelParams
.handler
- Callback handler.java.lang.ClassCastException
public static void getChannel(java.lang.String channelUrl, GroupChannel.GroupChannelGetHandler handler)
GroupChannel
with given channel URL.channelUrl
- URL of channel. Refer to BaseChannel.getUrl()
.handler
- Callback handler.@Deprecated public static void getTotalUnreadMessageCount(GroupChannel.GroupChannelTotalUnreadMessageCountHandler handler)
SendBird.getTotalUnreadMessageCount(GroupChannel.GroupChannelTotalUnreadMessageCountHandler)
.GroupChannel
s the current user has joined.handler
- Callback handler.@Deprecated public static void getTotalUnreadMessageCount(java.util.List<java.lang.String> channelCustomTypes, GroupChannel.GroupChannelTotalUnreadMessageCountHandler handler)
SendBird.getTotalUnreadMessageCount(List, GroupChannel.GroupChannelTotalUnreadMessageCountHandler)
.GroupChannel
s with channel custom types filter.channelCustomTypes
- GroupChannel
custom type list.handler
- Callback handler.@Deprecated public static void getTotalUnreadMessageCount(GroupChannelTotalUnreadMessageCountParams params, GroupChannel.GroupChannelTotalUnreadMessageCountHandler handler)
SendBird.getTotalUnreadMessageCount(GroupChannelTotalUnreadMessageCountParams, GroupChannel.GroupChannelTotalUnreadMessageCountHandler)
.GroupChannel
s with GroupChannelTotalUnreadMessageCountParams
filter.params
- GroupChannelTotalUnreadMessageCountParams
handler
- Callback handler.@Deprecated public static void getUnreadItemCount(java.util.Collection<GroupChannel.UnreadItemKey> keys, GroupChannel.GroupChannelGetUnreadItemCountHandler handler)
SendBird.getUnreadItemCount(Collection, GroupChannel.GroupChannelGetUnreadItemCountHandler)
.GroupChannel
s from keys.keys
- Unread item keys. Refer to GroupChannel.UnreadItemKey
.handler
- Callback handler.@Deprecated public static void getTotalUnreadChannelCount(GroupChannel.GroupChannelTotalUnreadChannelCountHandler handler)
SendBird.getTotalUnreadChannelCount(GroupChannel.GroupChannelTotalUnreadChannelCountHandler)
.GroupChannel
s the current user has joined.handler
- Callback handler.@Deprecated public static void getChannelCount(GroupChannel.MemberState memberState, GroupChannel.GroupChannelChannelCountHandler handler)
getChannelCount(GroupChannelListQuery.MemberStateFilter, GroupChannelChannelCountHandler)
.GroupChannel
s.memberState
- GroupChannel.MemberState
.handler
- Callback handler.@Deprecated public static void getChannelCount(GroupChannelListQuery.MemberStateFilter memberStateFilter, GroupChannel.GroupChannelChannelCountHandler handler)
SendBird.getGroupChannelCount(GroupChannelListQuery.MemberStateFilter, GroupChannel.GroupChannelChannelCountHandler)
.GroupChannel
s.memberStateFilter
- GroupChannelListQuery.MemberStateFilter
.handler
- Callback handler.public GroupChannelMemberListQuery createMemberListQuery()
public BaseMessage getLastMessage()
null
if there is no message.public User getInviter()
User
to this channel.public int getUnreadMessageCount()
User
.public int getUnreadMentionCount()
User
.public java.util.List<Member> getMembers()
public int getMemberCount()
public int getJoinedMemberCount()
public long getInvitedAt()
public long getJoinedAt()
public boolean isSuper()
GroupChannel
.true
if the channel is super.public boolean isPublic()
GroupChannel
.true
if the channel is public.public boolean isDistinct()
GroupChannel
.
For a distinct GroupChannel
, later when you create GroupChannel
with same User
s and isDistinct
flag being true
(refer to createChannel(List, boolean, GroupChannelCreateHandler)
or createChannelWithUserIds(List, boolean, String, Object, String, GroupChannelCreateHandler)
),
the channel URL does not change, which means the messages between User
s remain at the channel.
If the channel is not distinct one, a new GroupChannel
is created even though User
s are same.
As a result, you get a totally new channel URL (the old channel still remains), which means the User
s start new conversation.true
if the channel is distinct.public boolean isDiscoverable()
PublicGroupChannelListQuery
.
If it is false, it will not appear on the result of PublicGroupChannelListQuery
.@Deprecated public boolean isPushEnabled()
getMyPushTriggerOption()
.setPushPreference(boolean, GroupChannelSetPushPreferenceHandler)
.true
if push is enabled for this channel.public GroupChannel.PushTriggerOption getMyPushTriggerOption()
setMyPushTriggerOption(PushTriggerOption, GroupChannelSetMyPushTriggerOptionHandler)
.GroupChannel.PushTriggerOption
public boolean isAccessCodeRequired()
GroupChannel
.true
if this channel has an access code.public GroupChannel.CountPreference getMyCountPreference()
setMyCountPreference(CountPreference, GroupChannelSetMyCountPreferenceHandler)
.GroupChannel.CountPreference
.public boolean isHidden()
true
if this channel is hidden.public GroupChannel.HiddenState getHiddenState()
GroupChannel.HiddenState
.public long getMessageOffsetTimestamp()
resetMyHistory(GroupChannelResetMyHistoryHandler)
()} and hide(boolean, GroupChannelHideHandler)
()} is called.public boolean isBroadcast()
GroupChannel
.true
if the channel is broadcast channel.public void updateChannel(java.lang.String name, java.lang.Object coverUrlOrImage, java.lang.String data, GroupChannel.GroupChannelUpdateHandler handler) throws java.lang.ClassCastException
null
is passed for each parameter, the current value of each is maintained.name
- New name.coverUrlOrImage
- New cover URL or image file of channel. Pass String
, File
or null
only, throws exception otherwise.data
- New custom data.handler
- Callback handler.java.lang.ClassCastException
- If coverUrlOrImage
is none of String
, File
or null
, exception occurs.@Deprecated public void updateChannel(boolean isDistinct, java.lang.String name, java.lang.Object coverUrlOrImage, java.lang.String data, GroupChannel.GroupChannelUpdateHandler handler) throws java.lang.ClassCastException
updateChannel(GroupChannelParams, GroupChannelUpdateHandler)
null
is passed for each parameter, the current value of each is maintained.isDistinct
- New distinct channel option.name
- New name.coverUrlOrImage
- New cover URL or image file of channel. Pass String
, File
or null
only, throws exception otherwise.data
- New custom data.handler
- Callback handler.java.lang.ClassCastException
- If coverUrlOrImage
is none of String
, File
or null
, exception occurs.public void updateChannel(boolean isDistinct, java.lang.String name, java.lang.Object coverUrlOrImage, java.lang.String data, java.lang.String customType, GroupChannel.GroupChannelUpdateHandler handler) throws java.lang.ClassCastException
null
is passed for each parameter, the current value of each is maintained.isDistinct
- New distinct channel option.name
- New name.coverUrlOrImage
- New cover URL or image file of channel. Pass String
, File
or null
only, throws exception otherwise.data
- New custom data.customType
- New custom type.handler
- Callback handler.java.lang.ClassCastException
- If coverUrlOrImage
is none of String
, File
or null
, exception occurs.public void updateChannel(GroupChannelParams params, GroupChannel.GroupChannelUpdateHandler handler) throws java.lang.ClassCastException
params
- Params of channel. Refer to GroupChannelParams
.handler
- Callback handler.java.lang.ClassCastException
public void invite(User user, GroupChannel.GroupChannelInviteHandler handler)
User
to this channel.user
- User
to invite.handler
- Callback handler.public void invite(java.util.List<User> users, GroupChannel.GroupChannelInviteHandler handler)
User
s to this channel.users
- User
s to invite.handler
- Callback handler.public void inviteWithUserId(java.lang.String userId, GroupChannel.GroupChannelInviteHandler handler)
User
to this channel.userId
- User
ID to invite.handler
- Callback handler.public void inviteWithUserIds(java.util.List<java.lang.String> userIds, GroupChannel.GroupChannelInviteHandler handler)
User
s top this channel.userIds
- User
IDs to invite.handler
- Callback handler.public void join(GroupChannel.GroupChannelJoinHandler handler)
handler
- Callback handler.public void join(java.lang.String accessCode, GroupChannel.GroupChannelJoinHandler handler)
accessCode
- Access code for this channel.handler
- Callback handler.public void hide(GroupChannel.GroupChannelHideHandler handler)
User
's GroupChannel
list.
When a new message is received from the channel, it appears again.handler
- Callback handler.public void hide(boolean hidePreviousMessages, GroupChannel.GroupChannelHideHandler handler)
User
's GroupChannel
list.
When a new message is received from the channel, it appears again.hidePreviousMessages
- If set true, the messages created before the hide will not be loaded anymore when the channel reappears.handler
- Callback handler.public void hide(boolean hidePreviousMessages, boolean allowAutoUnhide, GroupChannel.GroupChannelHideHandler handler)
User
's GroupChannel
list.hidePreviousMessages
- If set true, the messages created before the hide will not be loaded anymore when the channel reappears.allowAutoUnhide
- If set true, when a new message is received from the channel, it appears again.handler
- Callback handler.public void unhide(GroupChannel.GroupChannelUnhideHandler handler)
User
's GroupChannel
list.handler
- Callback handler.public void leave(GroupChannel.GroupChannelLeaveHandler handler)
handler
- Callback handler.public void acceptInvitation(GroupChannel.GroupChannelAcceptInvitationHandler handler)
User
.
After the acceptance, the User
will be joined to this GroupChannel
.handler
- Callback handler.public void acceptInvitation(java.lang.String accessCode, GroupChannel.GroupChannelAcceptInvitationHandler handler)
User
.
After the acceptance, the User
will be joined to this GroupChannel
.accessCode
- Access code for this channel.handler
- Callback handler.public void declineInvitation(GroupChannel.GroupChannelDeclineInvitationHandler handler)
User
.handler
- Callback handler.@Deprecated public void setPushPreference(boolean pushOn, GroupChannel.GroupChannelSetPushPreferenceHandler handler)
setMyPushTriggerOption(PushTriggerOption, GroupChannelSetMyPushTriggerOptionHandler)
.pushOn
- Push on or off flag.handler
- Callback handler.@Deprecated public void getPushPreference(GroupChannel.GroupChannelGetPushPreferenceHandler handler)
isPushEnabled()
.handler
- Callback handler.public void setMyPushTriggerOption(GroupChannel.PushTriggerOption pushTriggerOption, GroupChannel.GroupChannelSetMyPushTriggerOptionHandler handler)
GroupChannel.PushTriggerOption.DEFAULT
, it works according to the state of SendBird.PushTriggerOption
.
If not, push messages will be triggered according to the state of GroupChannel.PushTriggerOption
.
Refer to SendBird.PushTriggerOption
.pushTriggerOption
- PushTriggerOption
. Refer to GroupChannel.PushTriggerOption
.handler
- Callback handler.public void getMyPushTriggerOption(GroupChannel.GroupChannelGetMyPushTriggerOptionHandler handler)
GroupChannel.PushTriggerOption
.
For details of push trigger option, refer to setMyPushTriggerOption(PushTriggerOption, GroupChannelSetMyPushTriggerOptionHandler)
handler
- Callback handler.public void setMyCountPreference(GroupChannel.CountPreference preference, GroupChannel.GroupChannelSetMyCountPreferenceHandler handler)
preference
- My count preference. Refer to GroupChannel.CountPreference
.handler
- Callback handler.@Deprecated public static void markAsReadAll(GroupChannel.GroupChannelMarkAsReadHandler handler)
SendBird.markAsReadAll(SendBird.MarkAsReadHandler)
.GroupChannel
s.
This method has rate limit. You can send one request per second.
It returns SendBirdException if you exceed the rate limit.handler
- Callback handler.@Deprecated public void markAsDelivered()
SendBird.markAsDelivered(Map)
.@Deprecated public void markAsRead()
markAsRead(SendBird.MarkAsReadHandler)
.public void markAsRead(SendBird.MarkAsReadHandler handler)
SendBird.MarkAsReadHandler
.handler
- SendBird.MarkAsReadHandler
.public void resetMyHistory(GroupChannel.GroupChannelResetMyHistoryHandler handler)
handler
- Callback handler.@Deprecated public long getLastSeenAtBy(User user)
User
last saw this GroupChannel
.user
- User
among members.@Deprecated public long getLastSeenAtByWithUserId(java.lang.String userId)
User
with the given ID last saw this GroupChannel
.userId
- User
ID among members.@Deprecated public java.util.List<Member> getReadMembers(BaseMessage message)
getReadMembers(BaseMessage, boolean)
.User
and the sender of the message.message
- Message.public java.util.List<Member> getReadMembers(BaseMessage message, boolean includeAllMembers)
message
- Message.includeAllMembers
- If set false, this list excludes the current logged-in User
and the sender of the message.@Deprecated public java.util.List<Member> getUnreadMembers(BaseMessage message)
getUnreadMembers(BaseMessage, boolean)
.User
and the sender of the message.message
- Message.public java.util.List<Member> getUnreadMembers(BaseMessage message, boolean includeAllMembers)
message
- Message.includeAllMembers
- If set false, this list excludes the current logged-in User
and the sender of the message.@Deprecated public java.util.Map<java.lang.String,ReadStatus> getReadStatus()
getReadStatus(boolean)
.Map
with User
ID keys.public java.util.Map<java.lang.String,ReadStatus> getReadStatus(boolean includeAllMembers)
ReadStatus
for all members in this GroupChannel
.includeAllMembers
- If set false, this excludes the current User
.Map
with User
ID keys.public long getMyLastRead()
@Deprecated public int getReadReceipt(BaseMessage message)
getUnreadMemberCount(BaseMessage)
.User
and the sender of the message.message
- The message.public int getUnreadMemberCount(BaseMessage message)
User
and the sender of the message.message
- The message.@Deprecated public int getDeliveryReceipt(BaseMessage message)
getUndeliveredMemberCount(BaseMessage)
.User
and the sender of the message.message
- The message.public int getUndeliveredMemberCount(BaseMessage message)
User
and the sender of the message.message
- The message.public void startTyping()
public void endTyping()
public boolean isTyping()
true
if one or members are typing.@Deprecated public java.util.List<Member> getTypingMembers()
getTypingUsers()
.public java.util.List<User> getTypingUsers()
public java.lang.String getCustomType()
createChannel(List, boolean, String, Object, String, String, GroupChannelCreateHandler)
or
createChannelWithUserIds(List, boolean, String, Object, String, String, GroupChannelCreateHandler)
,
updateChannel(boolean, String, Object, String, String, GroupChannelUpdateHandler)
.public Member.MemberState getMyMemberState()
public Member.Role getMyRole()
Member.Role
.public Member.MutedState getMyMutedState()
Member.MutedState
.public int getMessageSurvivalSeconds()
public BannedUserListQuery createBannedUserListQuery()
public void banUser(User user, java.lang.String description, int seconds, GroupChannel.GroupChannelBanHandler handler)
user
- Member to ban.description
- Descriptionseconds
- Duration the banned User
cannot enter this channel again.handler
- Callback handler.public void banUserWithUserId(java.lang.String userId, java.lang.String description, int seconds, GroupChannel.GroupChannelBanHandler handler)
userId
- Member ID (User
ID) to ban.description
- Descriptionseconds
- Duration the banned User
cannot enter this channel again.handler
- Callback handler.public void unbanUser(User user, GroupChannel.GroupChannelUnbanHandler handler)
User
. Operators can unban User
who has been banned from this channel.user
- User
to unban.handler
- Callback handler.public void unbanUserWithUserId(java.lang.String userId, GroupChannel.GroupChannelUnbanHandler handler)
User
. Operators can unban User
who has been banned from this channel.userId
- User
ID to unban.handler
- Callback handler.public void muteUser(User user, GroupChannel.GroupChannelMuteHandler handler)
User
. Muted User
's messages are no longer delivered to current User
.user
- User
to mute.handler
- Callback handler.public void muteUserWithUserId(java.lang.String userId, GroupChannel.GroupChannelMuteHandler handler)
User
. Muted User
's messages are no longer delivered to current User
.userId
- User
ID to mute.handler
- Callback handler.public void muteUser(User user, java.lang.String description, int seconds, GroupChannel.GroupChannelMuteHandler handler)
User
. Muted User
's messages are no longer delivered to current User
.
If you want to mute the user indefinitely, pass -1 to seconds as the argument.
Or you can use muteUser(User, GroupChannelMuteHandler)
.user
- User
to mute.description
- Description.seconds
- Duration for the mute.handler
- Callback handler.public void muteUserWithUserId(java.lang.String userId, java.lang.String description, int seconds, GroupChannel.GroupChannelMuteHandler handler)
User
. Muted User
's messages are no longer delivered to current User
.
If you want to mute the user indefinitely, pass -1 to seconds as the argument.
Or you can use muteUser(User, GroupChannelMuteHandler)
.userId
- User
ID to mute.description
- Description.seconds
- Duration for the mute.handler
- Callback handler.public void unmuteUser(User user, GroupChannel.GroupChannelUnmuteHandler handler)
User
. Unmuted User
's messages are again shown to current User
.user
- User
to unmute.handler
- Callback handler.public void unmuteUserWithUserId(java.lang.String userId, GroupChannel.GroupChannelUnmuteHandler handler)
User
. Unmuted User
's messages are again shown to current User
.userId
- User
ID to unmute.handler
- Callback handler.public void freeze(GroupChannel.GroupChannelFreezeHandler handler)
GroupChannel
.handler
- Callback handler.public void unfreeze(GroupChannel.GroupChannelUnfreezeHandler handler)
GroupChannel
.handler
- Callback handler.public void registerScheduledUserMessage(ScheduledUserMessageParams params, GroupChannel.RegisterScheduledUserMessageHandler handler)
params
- Params of scheduled user message. Refer to ScheduledUserMessageParams
.handler
- Callback handler.public void delete(GroupChannel.GroupChannelDeleteHandler handler)
GroupChannel
. Note that only operators of a channel are able to delete it or else, an error will be returned to the handler.handler
- The callback handler.public User getCreator()
User
of this channel creator. Can be null
.public java.util.List<java.lang.Long> getPinnedMessageIds()
public BaseMessage getLatestPinnedMessage()
public java.lang.String toString()
toString
in class BaseChannel
@Deprecated public static int compareTo(GroupChannel c1, GroupChannel c2, GroupChannelListQuery.Order order)
compareTo(GroupChannel, GroupChannel, GroupChannelListQuery.Order, SortOrder)
.public static int compareTo(GroupChannel c1, GroupChannel c2, GroupChannelListQuery.Order queryOrder, SortOrder sortOrder)
GroupChannelListQuery.Order
.
- GroupChannelListQuery.Order.CHRONOLOGICAL
: compares channel's createdAt.
- GroupChannelListQuery.Order.LATEST_LAST_MESSAGE
: compares channel's last message's createdAt.
- GroupChannelListQuery.Order.CHANNEL_NAME_ALPHABETICAL
: compares channel's name.
- GroupChannelListQuery.Order.METADATA_VALUE_ALPHABETICAL
: does not perform any comparison. Always returns 0.c1
- GroupChannel
object to compare.c2
- GroupChannel
object to compare.queryOrder
- GroupChannelListQuery.Order
to compare the given channels by.sortOrder
- SortOrder
on which order to compare the channels to.public static GroupChannel clone(GroupChannel channel)
channel
- GroupChannel to clone 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.