1 package com.netease.nimlib.sdk.msg;
3 import android.util.Pair;
49 import java.util.ArrayList;
50 import java.util.List;
66 String MSG_CHATTING_ACCOUNT_ALL =
"all";
74 String MSG_CHATTING_ACCOUNT_NONE = null;
203 List<IMMessage> queryMessageListByUuidBlock(List<String> uuids);
219 List<IMMessage> queryMessageListByServerIdBlock(List<String> serverIds);
251 List<IMMessage> queryMessageListBySubtypeBlock(
MsgTypeEnum msgTypeEnum,
IMMessage anchor,
int limit,
int subtype);
361 long queryRoamMsgHasMoreTimeBlock(String sessionId,
SessionTypeEnum sessionType);
380 long queryRoamMsgHasMoreTagServerIdBlock(String sessionId,
SessionTypeEnum sessionType);
481 boolean persistClear);
518 boolean persistClear,
IMMessageFilter customFilter,
boolean updateUnread);
652 List<MsgIndexRecord> searchAllSessionBlock(String query,
int limit);
672 List<MsgIndexRecord> searchSessionBlock(String query,
SessionTypeEnum sessionType, String sessionId);
680 void deleteChattingHistory(
IMMessage message);
688 void deleteChattingHistory(
IMMessage message,
boolean ignore);
696 void deleteChattingHistory(List<IMMessage> msgList,
boolean ignore);
704 void clearChattingHistory(String account,
SessionTypeEnum sessionType);
713 void clearChattingHistory(String account,
SessionTypeEnum sessionType,
boolean ignore);
749 boolean everBeenDeleted(
IMMessage message);
768 int getTotalUnreadCount();
776 int getTotalUnreadCount(
boolean notify);
800 List<IMMessage> queryUnreadMessageListBlock(String sessionId,
SessionTypeEnum sessionType);
836 void clearAllUnreadCount();
857 void updateIMMessageStatus(
IMMessage message);
900 List<RecentContact> queryRecentContactsBlock();
933 List<RecentContact> queryRecentContactsBlock(
int limit);
963 List<RecentContact> queryRecentContactsBlock(
MsgTypeEnum filterMsgType);
980 List<RecentContact> queryRecentContactsBlock(Set<MsgTypeEnum> filterMsgTypeSet);
1006 void updateRecentByMessage(
IMMessage message,
boolean needNotify);
1014 void updateRoamMsgHasMoreTag(
IMMessage newTag);
1031 void deleteRecentContact2(String account,
SessionTypeEnum sessionType);
1061 void deleteRoamMsgHasMoreTag(String sessionId,
SessionTypeEnum sessionType);
1082 AbortableFuture<String> transVoiceToTextAtScene(String voiceUrl, String path,
long duration, String sceneKey);
1095 AbortableFuture<String> transVoiceToTextEnableForce(String voiceUrl, String path,
long duration, String sceneKey,
1096 boolean enableForceUploadFile);
1158 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount);
1171 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1186 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1187 String postscript, String attach);
1237 boolean saveToDB,
boolean withLastMsg);
1316 void clearServerHistory(String sessionId,
boolean deleteRoam);
1325 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType);
1337 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean deleteRoam);
1347 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean sync, String ext);
1358 void deleteRangeHistory(String account,
SessionTypeEnum sessionType,
long startTime,
long endTime);
1443 int queryReplyCountInThreadTalkBlock(
IMMessage msg);
1469 boolean needBadge, String pushTitle, String pushContent,
1470 Map<String, Object> pushPayload);
1496 boolean needBadge, String pushTitle, String pushContent,
1497 Map<String, Object> pushPayload);
1620 List<MsgPinDbOption> queryMsgPinBlock(String sessionId,
SessionTypeEnum sessionType);
1657 List<StickTopSessionInfo> queryStickTopSessionBlock();
1667 boolean isStickTopSession(String sessionId,
SessionTypeEnum sessionType);
1677 void migrateMessages(String from, String to,
boolean changeFrom);
历史消息牵移时导出时自定义处理器,导出时参考IMsgExportProcessor
NIM消息实体数据结构。 第三方APP不要调用设置类接口,调用之后不会被持久化
消息本身发送/接收状态,附件状态见AttachStatusEnum
消息的关键信息,通过这些信息可以从服务端查询到该消息的完整部分
云信消息服务接口类,提供消息发送、消息查询、历史消息、消息扩展功能、获取未读数、已读回执、会话列表等...
SDK nos token场景配置,不配置的话,走默认值,默认值只有以下3种场景:
自定义通知。 区别于IMMessage,SDK仅透传该类型消息,不负责解析和存储。消息内容由第三方APP自由扩展。 ...