Open Channel
open channel.
similar chatroom large-scale public channel, Supports large amount user same When parameter and. user can self By Create, enter and Leave open channel.
*Note:
// Get open channel Object
val channel = OpenChannel.obtainChannel("open_123")
// Join open channel
val params = EnterOpenChannelParams(count = 10)
channel.enterChannel(params) { error ->
if (error == null) {
// Joined successfully
}
}
// Get channel Info
OpenChannel.getChannel("open_123") { channel, error ->
// ...
}
// Leave channel
channel.exitChannel { error ->
if (error == null) {
// Exited successfully
}
}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
Create open channel History message query Object. Uses Pagination mode, Via OpenChannelMessagesQuery.loadNextPage Paginated loading.
Join open channel.
Leave open channel.
Get open channel unit Data.
When parameter before and person Count
When parameter before and person Count
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,