1 package com.netease.nimlib.sdk.msg;
3 import android.util.Pair;
5 import androidx.annotation.NonNull;
54 import java.util.ArrayList;
55 import java.util.List;
71 String MSG_CHATTING_ACCOUNT_ALL =
"all";
79 String MSG_CHATTING_ACCOUNT_NONE = null;
224 List<IMMessage> queryMessageListByUuidBlock(List<String> uuids);
240 List<IMMessage> queryMessageListByServerIdBlock(List<String> serverIds);
272 List<IMMessage> queryMessageListBySubtypeBlock(
MsgTypeEnum msgTypeEnum,
IMMessage anchor,
int limit,
int subtype);
383 long queryRoamMsgHasMoreTimeBlock(String sessionId,
SessionTypeEnum sessionType);
402 long queryRoamMsgHasMoreTagServerIdBlock(String sessionId,
SessionTypeEnum sessionType);
503 boolean persistClear);
540 boolean persistClear,
IMMessageFilter customFilter,
boolean updateUnread);
674 List<MsgIndexRecord> searchAllSessionBlock(String query,
int limit);
694 List<MsgIndexRecord> searchSessionBlock(String query,
SessionTypeEnum sessionType, String sessionId);
702 void deleteChattingHistory(
IMMessage message);
710 void deleteChattingHistory(
IMMessage message,
boolean ignore);
718 void deleteChattingHistory(List<IMMessage> msgList,
boolean ignore);
726 void clearChattingHistory(String account,
SessionTypeEnum sessionType);
735 void clearChattingHistory(String account,
SessionTypeEnum sessionType,
boolean ignore);
771 boolean everBeenDeleted(
IMMessage message);
790 int getTotalUnreadCount();
798 int getTotalUnreadCount(
boolean notify);
822 List<IMMessage> queryUnreadMessageListBlock(String sessionId,
SessionTypeEnum sessionType);
858 void clearAllUnreadCount();
879 void updateIMMessageStatus(
IMMessage message);
922 List<RecentContact> queryRecentContactsBlock();
955 List<RecentContact> queryRecentContactsBlock(
int limit);
985 List<RecentContact> queryRecentContactsBlock(
MsgTypeEnum filterMsgType);
1002 List<RecentContact> queryRecentContactsBlock(Set<MsgTypeEnum> filterMsgTypeSet);
1028 void updateRecentByMessage(
IMMessage message,
boolean needNotify);
1036 void updateRoamMsgHasMoreTag(
IMMessage newTag);
1053 void deleteRecentContact2(String account,
SessionTypeEnum sessionType);
1083 void deleteRoamMsgHasMoreTag(String sessionId,
SessionTypeEnum sessionType);
1104 AbortableFuture<String> transVoiceToTextAtScene(String voiceUrl, String path,
long duration, String sceneKey);
1117 AbortableFuture<String> transVoiceToTextEnableForce(String voiceUrl, String path,
long duration, String sceneKey,
1118 boolean enableForceUploadFile);
1180 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount);
1193 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1208 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1209 String postscript, String attach);
1259 boolean saveToDB,
boolean withLastMsg);
1338 void clearServerHistory(String sessionId,
boolean deleteRoam);
1347 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType);
1359 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean deleteRoam);
1369 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean sync, String ext);
1380 void deleteRangeHistory(String account,
SessionTypeEnum sessionType,
long startTime,
long endTime);
1465 int queryReplyCountInThreadTalkBlock(
IMMessage msg);
1498 boolean needBadge, String pushTitle, String pushContent,
1499 Map<String, Object> pushPayload);
1525 boolean needBadge, String pushTitle, String pushContent,
1526 Map<String, Object> pushPayload);
1649 List<MsgPinDbOption> queryMsgPinBlock(String sessionId,
SessionTypeEnum sessionType);
1686 List<StickTopSessionInfo> queryStickTopSessionBlock();
1696 boolean isStickTopSession(String sessionId,
SessionTypeEnum sessionType);
1706 void migrateMessages(String from, String to,
boolean changeFrom);
历史消息牵移时导出时自定义处理器,导出时参考IMsgExportProcessor
NIM消息实体数据结构。 第三方APP不要调用设置类接口,调用之后不会被持久化
消息本身发送/接收状态,附件状态见AttachStatusEnum
NIMMessageAIStreamStopParams类
消息的关键信息,通过这些信息可以从服务端查询到该消息的完整部分
云信消息服务接口类,提供消息发送、消息查询、历史消息、消息扩展功能、获取未读数、已读回执、会话列表等...
SDK nos token场景配置,不配置的话,走默认值,默认值只有以下3种场景:
自定义通知。 区别于IMMessage,SDK仅透传该类型消息,不负责解析和存储。消息内容由第三方APP自由扩展。 ...