Group Channel
group channel.
multiple people parameter and group chat channel, Supports Member Management, Join/Leave etc. Operation. Inherits from BaseChannel, Supports Message query and Unread count Management.
if (error == null && messages!= null) {
// Get group channel
GroupChannel.getChannel("group_123") { channel, error ->
// ...
}
// Create group
val params = CreateGroupParams(
groupId = "group_123",
inviteeUserIds = listOf("userId1", "userId2")
inviteeUserIds = listOf("userId1", "userId2")
)
GroupChannel.createGroup(params) { resultCode, error -> ... }
channel.join { resultCode, error ->
channel.join { resultCode, error ->
if (error == null) {
}
}
}
channel.leave { error ->
channel.leave { error ->
if (error == null) {
}
}
}Properties
Inherited properties
Channel message push notification level.
Channel type
Message edit draft info.
Whether Contains machine people.
channel the last messages. Contains the last messages complete Info (Content, Sender, When time etc.).
channel within @ message (Including @Everyone) Unread count.
channel within Only @ me message Unread count.
channel Operation timestamp stamp (milli seconds).
Channel translation strategy.
Unread message count amount.
Functions
========================================
Get group channel memory Object.
group maximum Member Count
========================================,成功时返回Returns Message list by When chronological order From Old to New arrange.列表
May directly Joined successfully, Also May need Was/were invite people confirm.
May directly Joined successfully, Also May need Group owner/Administrator approve.
Get group channel memory Object.
group maximum Member Count
Usage Example:
Usage Example:
Inherited functions
*Note: 1 seconds minute Send message Not can exceed 5 items.
}
println("first items Unread messages: ${message.messageId}")
Usage Example:
Notification settings
) { message, error ->
Clear history messages.
Usage Example:
Usage Example:
Channel unique identifier
Channel message push notification level.
if (error == null) {
Channel type
Message edit draft info.
Usage Example:
Whether Contains machine people.
channel the last messages. Contains the last messages complete Info (Content, Sender, When time etc.).
channel within @ message (Including @Everyone) Unread count.
channel within Only @ me message Unread count.
From Local Data database re- New Get When before channel latest Info, Returns a New BaseChannel Object.
if (error == null && newChannel!= null) {
}
channel Operation timestamp stamp (milli seconds).
channel.removeTags(listOf("tag001", "tag002")) { error ->
// Draft cleared successfully
Channel translation strategy.
Unread message count amount.
// Cleared successfully
Delete message
}
从底层重新加载频道数据。
if (error == null) {
channel.sendMediaMessage(params, object: SendMediaMessageHandler {
channel.sendMessage(params, object: SendMessageHandler {
========================================
This Method Not Delete channel within message. If This channel has New message, This channel Convert re- New In List display,