1 package com.netease.nimlib.sdk.msg;
3 import android.util.Pair;
50 import java.util.ArrayList;
51 import java.util.List;
67 String MSG_CHATTING_ACCOUNT_ALL =
"all";
75 String MSG_CHATTING_ACCOUNT_NONE = null;
172 List<IMMessage> queryMessageListByUuidBlock(List<String> uuids);
188 List<IMMessage> queryMessageListByServerIdBlock(List<String> serverIds);
220 List<IMMessage> queryMessageListBySubtypeBlock(
MsgTypeEnum msgTypeEnum,
IMMessage anchor,
int limit,
int subtype);
330 long queryRoamMsgHasMoreTimeBlock(String sessionId,
SessionTypeEnum sessionType);
349 long queryRoamMsgHasMoreTagServerIdBlock(String sessionId,
SessionTypeEnum sessionType);
450 boolean persistClear);
487 boolean persistClear,
IMMessageFilter customFilter,
boolean updateUnread);
621 List<MsgIndexRecord> searchAllSessionBlock(String query,
int limit);
641 List<MsgIndexRecord> searchSessionBlock(String query,
SessionTypeEnum sessionType, String sessionId);
649 void deleteChattingHistory(
IMMessage message);
657 void deleteChattingHistory(
IMMessage message,
boolean ignore);
665 void deleteChattingHistory(List<IMMessage> msgList,
boolean ignore);
673 void clearChattingHistory(String account,
SessionTypeEnum sessionType);
682 void clearChattingHistory(String account,
SessionTypeEnum sessionType,
boolean ignore);
718 boolean everBeenDeleted(
IMMessage message);
737 int getTotalUnreadCount();
745 int getTotalUnreadCount(
boolean notify);
769 List<IMMessage> queryUnreadMessageListBlock(String sessionId,
SessionTypeEnum sessionType);
805 void clearAllUnreadCount();
826 void updateIMMessageStatus(
IMMessage message);
869 List<RecentContact> queryRecentContactsBlock();
902 List<RecentContact> queryRecentContactsBlock(
int limit);
932 List<RecentContact> queryRecentContactsBlock(
MsgTypeEnum filterMsgType);
949 List<RecentContact> queryRecentContactsBlock(Set<MsgTypeEnum> filterMsgTypeSet);
975 void updateRecentByMessage(
IMMessage message,
boolean needNotify);
983 void updateRoamMsgHasMoreTag(
IMMessage newTag);
1000 void deleteRecentContact2(String account,
SessionTypeEnum sessionType);
1030 void deleteRoamMsgHasMoreTag(String sessionId,
SessionTypeEnum sessionType);
1051 AbortableFuture<String> transVoiceToTextAtScene(String voiceUrl, String path,
long duration, String sceneKey);
1064 AbortableFuture<String> transVoiceToTextEnableForce(String voiceUrl, String path,
long duration, String sceneKey,
1065 boolean enableForceUploadFile);
1127 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount);
1140 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1155 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1156 String postscript, String attach);
1206 boolean saveToDB,
boolean withLastMsg);
1285 void clearServerHistory(String sessionId,
boolean deleteRoam);
1294 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType);
1306 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean deleteRoam);
1316 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean sync, String ext);
1327 void deleteRangeHistory(String account,
SessionTypeEnum sessionType,
long startTime,
long endTime);
1412 int queryReplyCountInThreadTalkBlock(
IMMessage msg);
1438 boolean needBadge, String pushTitle, String pushContent,
1439 Map<String, Object> pushPayload);
1465 boolean needBadge, String pushTitle, String pushContent,
1466 Map<String, Object> pushPayload);
1589 List<MsgPinDbOption> queryMsgPinBlock(String sessionId,
SessionTypeEnum sessionType);
1626 List<StickTopSessionInfo> queryStickTopSessionBlock();
1636 boolean isStickTopSession(String sessionId,
SessionTypeEnum sessionType);
1646 void migrateMessages(String from, String to,
boolean changeFrom);
历史消息牵移时导出时自定义处理器,导出时参考IMsgExportProcessor
NIM消息实体数据结构。 第三方APP不要调用设置类接口,调用之后不会被持久化
消息本身发送/接收状态,附件状态见AttachStatusEnum
消息的关键信息,通过这些信息可以从服务端查询到该消息的完整部分
云信消息服务接口类,提供消息发送、消息查询、历史消息、消息扩展功能、获取未读数、已读回执、会话列表等...
SDK nos token场景配置,不配置的话,走默认值,默认值只有以下3种场景:
自定义通知。 区别于IMMessage,SDK仅透传该类型消息,不负责解析和存储。消息内容由第三方APP自由扩展。 ...