API說明
一、 使用者管理接口(UserManager)
getUserInfo: 擷取使用者資訊
addToBlacklist: 添加黑名單
removeFromBlacklist: 移除黑名單
getBlackList:擷取黑名單清單
checkBlack:檢查使用者是否在黑名單
二、聊天管理接口(ChatManager)
sendMessage: 發送消息
getAllLocalConversations: 擷取所有本地會話
setConversationDisturb: 設定會話是否免打擾
getConversationDisturb:擷取會話是否免打擾
getMessageList:擷取會話消息記錄
delMessage:删除消息
delConversation:删除會話
markConversationAllMessageAsRead:标記某會話所有消息為已讀
三、群管理接口(GroupManager)
createGroup: 建立群
inviteUserIntoGroup: 邀請使用者進入群
removeUserFromGroup:删除群成員
transferGroup:轉讓群
exitGroup:退出群
updateGroupInfo:修改群資訊
getGroupList: 擷取使用者所在群組
getGroupInfo: 擷取群資訊
findGroup:查找群資訊
joinGroup:加入群組
四、API錯誤碼
API傳回的錯誤碼說明如下:(詳見MobIMErrorCode.java說明)
-1 網絡請求失敗
-2 請求錯誤