1 package com.netease.nimlib.sdk.msg;
3 import android.util.Pair;
51 import java.util.ArrayList;
52 import java.util.List;
68 String MSG_CHATTING_ACCOUNT_ALL =
"all";
76 String MSG_CHATTING_ACCOUNT_NONE = null;
173 List<IMMessage> queryMessageListByUuidBlock(List<String> uuids);
189 List<IMMessage> queryMessageListByServerIdBlock(List<String> serverIds);
221 List<IMMessage> queryMessageListBySubtypeBlock(
MsgTypeEnum msgTypeEnum,
IMMessage anchor,
int limit,
int subtype);
331 long queryRoamMsgHasMoreTimeBlock(String sessionId,
SessionTypeEnum sessionType);
350 long queryRoamMsgHasMoreTagServerIdBlock(String sessionId,
SessionTypeEnum sessionType);
451 boolean persistClear);
488 boolean persistClear,
IMMessageFilter customFilter,
boolean updateUnread);
622 List<MsgIndexRecord> searchAllSessionBlock(String query,
int limit);
642 List<MsgIndexRecord> searchSessionBlock(String query,
SessionTypeEnum sessionType, String sessionId);
650 void deleteChattingHistory(
IMMessage message);
658 void deleteChattingHistory(
IMMessage message,
boolean ignore);
666 void deleteChattingHistory(List<IMMessage> msgList,
boolean ignore);
674 void clearChattingHistory(String account,
SessionTypeEnum sessionType);
683 void clearChattingHistory(String account,
SessionTypeEnum sessionType,
boolean ignore);
719 boolean everBeenDeleted(
IMMessage message);
738 int getTotalUnreadCount();
746 int getTotalUnreadCount(
boolean notify);
770 List<IMMessage> queryUnreadMessageListBlock(String sessionId,
SessionTypeEnum sessionType);
806 void clearAllUnreadCount();
827 void updateIMMessageStatus(
IMMessage message);
870 List<RecentContact> queryRecentContactsBlock();
903 List<RecentContact> queryRecentContactsBlock(
int limit);
933 List<RecentContact> queryRecentContactsBlock(
MsgTypeEnum filterMsgType);
950 List<RecentContact> queryRecentContactsBlock(Set<MsgTypeEnum> filterMsgTypeSet);
976 void updateRecentByMessage(
IMMessage message,
boolean needNotify);
984 void updateRoamMsgHasMoreTag(
IMMessage newTag);
1001 void deleteRecentContact2(String account,
SessionTypeEnum sessionType);
1031 void deleteRoamMsgHasMoreTag(String sessionId,
SessionTypeEnum sessionType);
1052 AbortableFuture<String> transVoiceToTextAtScene(String voiceUrl, String path,
long duration, String sceneKey);
1065 AbortableFuture<String> transVoiceToTextEnableForce(String voiceUrl, String path,
long duration, String sceneKey,
1066 boolean enableForceUploadFile);
1128 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount);
1141 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1156 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1157 String postscript, String attach);
1207 boolean saveToDB,
boolean withLastMsg);
1286 void clearServerHistory(String sessionId,
boolean deleteRoam);
1295 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType);
1307 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean deleteRoam);
1317 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean sync, String ext);
1328 void deleteRangeHistory(String account,
SessionTypeEnum sessionType,
long startTime,
long endTime);
1413 int queryReplyCountInThreadTalkBlock(
IMMessage msg);
1439 boolean needBadge, String pushTitle, String pushContent,
1440 Map<String, Object> pushPayload);
1466 boolean needBadge, String pushTitle, String pushContent,
1467 Map<String, Object> pushPayload);
1590 List<MsgPinDbOption> queryMsgPinBlock(String sessionId,
SessionTypeEnum sessionType);
1627 List<StickTopSessionInfo> queryStickTopSessionBlock();
1637 boolean isStickTopSession(String sessionId,
SessionTypeEnum sessionType);
1647 void migrateMessages(String from, String to,
boolean changeFrom);
历史消息牵移时导出时自定义处理器,导出时参考IMsgExportProcessor
NIM消息实体数据结构。 第三方APP不要调用设置类接口,调用之后不会被持久化
消息本身发送/接收状态,附件状态见AttachStatusEnum
SDK 核心接口类,用于初始化 SDK,获取各个服务能力接口,获取当前状态等功能。
消息的关键信息,通过这些信息可以从服务端查询到该消息的完整部分
云信消息服务接口类,提供消息发送、消息查询、历史消息、消息扩展功能、获取未读数、已读回执、会话列表等...
SDK nos token场景配置,不配置的话,走默认值,默认值只有以下3种场景:
自定义通知。 区别于IMMessage,SDK仅透传该类型消息,不负责解析和存储。消息内容由第三方APP自由扩展。 ...