类 EaseNotificationMsgManager
- java.lang.Object
-
- io.agora.chat.uikit.manager.EaseNotificationMsgManager
-
public class EaseNotificationMsgManager extends java.lang.Object
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 io.agora.chat.ChatMessagecreateMessage(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> ext)Create notification messagejava.util.Map<java.lang.String,java.lang.Object>createMsgExt()Create ext mapjava.util.List<io.agora.chat.ChatMessage>getAllMessages()Get all messages of notificationio.agora.chat.ConversationgetConversation()Get notification conversationio.agora.chat.ConversationgetConversation(boolean createIfNotExists)Get notification conversationstatic EaseNotificationMsgManagergetInstance()io.agora.chat.ChatMessagegetLastMessageByConversation(io.agora.chat.Conversation con)Get latest messagejava.lang.StringgetMessageContent(io.agora.chat.ChatMessage message)Get the message contentbooleanisNotificationConversation(io.agora.chat.Conversation conversation)Check whether is a notification conversationbooleanisNotificationMessage(io.agora.chat.ChatMessage message)Check whether is a notification messagevoidmarkAllMessagesAsRead()Make all message in notification conversation as readbooleanremoveMessage(io.agora.chat.ChatMessage message)Remove notification messagebooleanupdateMessage(io.agora.chat.ChatMessage message)Update notification message
-
-
-
方法详细资料
-
getInstance
public static EaseNotificationMsgManager getInstance()
-
createMessage
public io.agora.chat.ChatMessage createMessage(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> ext)Create notification message- 参数:
message-ext-- 返回:
-
createMsgExt
public java.util.Map<java.lang.String,java.lang.Object> createMsgExt()
Create ext map- 返回:
-
getLastMessageByConversation
public io.agora.chat.ChatMessage getLastMessageByConversation(io.agora.chat.Conversation con)
Get latest message- 参数:
con-- 返回:
-
getConversation
public io.agora.chat.Conversation getConversation()
Get notification conversation- 返回:
-
getConversation
public io.agora.chat.Conversation getConversation(boolean createIfNotExists)
Get notification conversation- 参数:
createIfNotExists-- 返回:
-
getAllMessages
public java.util.List<io.agora.chat.ChatMessage> getAllMessages()
Get all messages of notification- 返回:
-
isNotificationMessage
public boolean isNotificationMessage(io.agora.chat.ChatMessage message)
Check whether is a notification message- 参数:
message-- 返回:
-
isNotificationConversation
public boolean isNotificationConversation(io.agora.chat.Conversation conversation)
Check whether is a notification conversation- 参数:
conversation-- 返回:
-
getMessageContent
public java.lang.String getMessageContent(io.agora.chat.ChatMessage message)
Get the message content- 参数:
message-- 返回:
-
updateMessage
public boolean updateMessage(io.agora.chat.ChatMessage message)
Update notification message- 参数:
message-- 返回:
-
removeMessage
public boolean removeMessage(io.agora.chat.ChatMessage message)
Remove notification message- 参数:
message-- 返回:
-
markAllMessagesAsRead
public void markAllMessagesAsRead()
Make all message in notification conversation as read
-
-