ChatActions mixin

Superclass constraints
Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
observers List<ChatUIKitObserverBase>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListeners() → void
inherited
addObserver(ChatUIKitObserverBase observer) → void
inherited
addReaction({required String messageId, required String reaction}) Future<void>
appointNewMessageConversationCount({required List<String> appointIds}) Future<int>
checkResult<T>(ChatSDKEvent actionEvent, Future<T> method()) Future<T>
inherited
createConversation({required String conversationId, ConversationType type = ConversationType.Chat}) Future<Conversation>
deleteLocalConversation({required String conversationId, bool deleteMessages = true}) Future<void>
deleteLocalMessageById({required String conversationId, required ConversationType type, required String messageId}) Future<void>
deleteLocalMessageByIds({required String conversationId, required ConversationType type, required List<String> messageIds}) Future<void>
deleteLocalMessages({required int beforeTime}) Future<void>
deleteLocalThreadMessageById({required String threadId, required String messageId}) Future<void>
deleteReaction({required String messageId, required String reaction}) Future<void>
deleteRemoteConversation({required String conversationId, required ConversationType type, bool isDeleteMessage = true}) Future<void>
deleteRemoteMessagesBefore({required String conversationId, required ConversationType type, required int timestamp}) Future<void>
deleteRemoteMessagesWithIds({required String conversationId, required ConversationType type, required List<String> msgIds}) Future<void>
downloadAttachment({required Message message}) Future<void>
downloadMessageAttachmentInCombine({required Message message}) Future<void>
downloadMessageThumbnailInCombine({required Message message}) Future<void>
downloadThumbnail({required Message message}) Future<void>
fetchCombineMessageDetail({required Message message}) Future<List<Message>>
fetchConversations({String? cursor, int pageSize = 20}) Future<CursorResult<Conversation>>
fetchGroupAckList({required String msgId, required String groupId, String? startAckId, int pageSize = 20}) Future<CursorResult<GroupMessageAck>>
fetchHistoryMessages({required String conversationId, ConversationType type = ConversationType.Chat, int pageSize = 20, SearchDirection direction = SearchDirection.Up, String startMsgId = ''}) Future<CursorResult<Message>>
fetchHistoryMessagesByOptions({required String conversationId, required ConversationType type, FetchMessageOptions? options, String? cursor, int pageSize = 50}) Future<CursorResult<Message>>
fetchPinnedConversations({String? cursor, int pageSize = 20}) Future<CursorResult<Conversation>>
fetchPinnedMessages({required String conversationId}) Future<List<Message>>
fetchReactionDetail({required String messageId, required String reaction, String? cursor, int pageSize = 20}) Future<CursorResult<MessageReaction>>
fetchReactionList({required List<String> messageIds, required ChatType type, String? groupId}) Future<Map<String, List<MessageReaction>>>
fetchSupportedLanguages() Future<List<TranslateLanguage>>
getAllConversations() Future<List<Conversation>>
getAppointUnreadCount({required List<String> appointIds}) Future<int>
getConversation({required String conversationId, ConversationType type = ConversationType.Chat}) Future<Conversation?>
getThreadConversation({required String conversationId}) Future<Conversation?>
getUnreadMessageCount() Future<int>
importMessages({required List<Message> messages}) Future<void>
insertMessage({required Message message, bool runMessageReceived = false, bool needUpdateConversationList = false}) Future<void>
loadLocalMessages({required String conversationId, required ConversationType type, SearchDirection direction = SearchDirection.Up, String? startId, int count = 30}) Future<List<Message>>
loadLocalMessagesByTimestamp({required String conversationId, required ConversationType type, required int startTime, required int endTime, int count = 30}) Future<List<Message>>
loadMessage({required String messageId}) Future<Message?>
loadPinnedMessages({required String conversationId, required ConversationType type}) Future<List<Message>>
markAllConversationsAsRead() Future<void>
markConversationAsRead({required String conversationId}) Future<void>
modifyMessage({required String messageId, required TextMessageBody msgBody}) Future<Message>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCmdMessagesReceived(List<Message> messages) → void
inherited
onConversationRead(String from, String to) → void
inherited
onConversationsUpdate() → void
inherited
onGroupMessageRead(List<GroupMessageAck> groupMessageAcks) → void
inherited
onMessageContentChanged(Message message, String operatorId, int operationTime) → void
inherited
onMessagePinChanged(String messageId, String conversationId, MessagePinOperation pinOperation, MessagePinInfo pinInfo) → void
inherited
onMessageReactionDidChange(List<MessageReactionEvent> events) → void
inherited
onMessagesDelivered(List<Message> messages) → void
inherited
onMessagesRead(List<Message> messages) → void
inherited
onMessagesRecalled(List<Message> messages) → void
inherited
onMessagesReceived(List<Message> messages) → void
inherited
onMessageUpdate(Message newMessage, [Message? oldMessage]) → void
inherited
onReadAckForGroupMessageUpdated() → void
inherited
onTypingMessagesReceived(List<Message> messages) → void
inherited
pinConversation({required String conversationId, required bool isPinned}) Future<void>
pinMessage({required String messageId}) Future<void>
recallMessage({required Message message}) Future<void>
removeListeners() → void
inherited
removeObserver(ChatUIKitObserverBase observer) → void
inherited
reportMessage({required String messageId, required String tag, required String reason}) Future<void>
resendMessage({required Message message}) Future<Message>
searchConversationLocalMessage({required String keywords, required String conversationId, ConversationType type = ConversationType.Chat, int timestamp = -1, int maxCount = 20, String? sender, SearchDirection direction = SearchDirection.Up}) Future<List<Message>>
searchLocalMessage({required String keywords, int timestamp = -1, int maxCount = 20, String? from, SearchDirection direction = SearchDirection.Up}) Future<List<Message>>
sendConversationReadAck({required String conversationId}) Future<void>
sendGroupMessageReadAck({required String msgId, required String groupId, String? content}) Future<void>
sendMessage({required Message message}) Future<Message>
sendMessageReadAck({required Message message}) Future<bool>
sendTyping({required String userId}) Future<void>
只支持单聊
toString() String
A string representation of this object.
inherited
translateMessage({required Message msg, required List<String> languages}) Future<Message>
unpinMessage({required String messageId}) Future<void>
updateMessage({required Message message, bool runMessageUpdate = false, bool needUpdateConversationList = false}) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited