# ConversationEventListener

public interface ConversationEventListener

## Functions

onChannelChange
Link copied to clipboard
public void onChannelChange(String groupId, String channelId, UltraGroupChannelType type)
onChannelDelete
Link copied to clipboard
public void onChannelDelete(String groupId, String channelId)
onChannelKicked
Link copied to clipboard
public void onChannelKicked(String groupId, String channelId, String userId)
onClearConversations
Link copied to clipboard
public abstract void onClearConversations(Array<ConversationType> conversationTypes)
清除某类会话。
onClearedMessage
Link copied to clipboard
public void onClearedMessage(ConversationIdentifier conversationIdentifier)
public abstract void onClearedMessage(ConversationType type, String targetId)
根据会话类型，清空某一会话的所有聊天消息记录,回调此方法。
onClearedUnreadStatus
Link copied to clipboard
public void onClearedUnreadStatus(ConversationIdentifier conversationIdentifier)
public abstract void onClearedUnreadStatus(ConversationType type, String targetId)
清除某会话的所有消息未读状态时，回调此方法。
onConversationRemoved
Link copied to clipboard
public abstract void onConversationRemoved(ConversationType type, String targetId)
从会话列表删除某会话时的回调。
onMessageReceivedStatusChange
Link copied to clipboard
public void onMessageReceivedStatusChange(int messageId, ConversationType conversationType, String targetId, ReceivedStatus status)
onOperationFailed
Link copied to clipboard
public abstract void onOperationFailed(ErrorCode code)
操作失败的回调。
onSaveDraft
Link copied to clipboard
public void onSaveDraft(ConversationIdentifier conversationIdentifier, String content)
public abstract void onSaveDraft(ConversationType type, String targetId, String content)
会话里保存草稿时，回调此方法