接口的使用
com.easemob.im.ApiCallback
使用ApiCallback的程序包
-
com.easemob.im中ApiCallback的使用
参数类型为ApiCallback的com.easemob.im中的方法修饰符和类型方法说明okhttp3.RequestApiClient.buildAppTokenRequest(String baseUrl, String path, String method, List<Pair> queryParams, List<Pair> collectionQueryParams, Object body, Map<String, String> headerParams, Map<String, String> cookieParams, Map<String, Object> formParams, String[] authNames, ApiCallback callback) Build an HTTP request with the given options.okhttp3.CallApiClient.buildCall(String baseUrl, String path, String method, List<Pair> queryParams, List<Pair> collectionQueryParams, Object body, Map<String, String> headerParams, Map<String, String> cookieParams, Map<String, Object> formParams, String[] authNames, ApiCallback callback) Build HTTP call with the given options.okhttp3.RequestApiClient.buildRequest(String baseUrl, String path, String method, List<Pair> queryParams, List<Pair> collectionQueryParams, Object body, Map<String, String> headerParams, Map<String, String> cookieParams, Map<String, Object> formParams, String[] authNames, ApiCallback callback) Build an HTTP request with the given options.okhttp3.CallApiClient.createAppTokenCall(EMCreateToken createAppToken, ApiCallback _callback) Build call for createAppToken<T> voidApiClient.executeAsync(okhttp3.Call call, ApiCallback<T> callback) <T> voidApiClient.executeAsync(okhttp3.Call call, Type returnType, ApiCallback<T> callback) Execute HTTP call asynchronously.参数类型为ApiCallback的com.easemob.im中的构造器限定符构造器说明ProgressRequestBody(okhttp3.RequestBody requestBody, ApiCallback callback) ProgressResponseBody(okhttp3.ResponseBody responseBody, ApiCallback callback) -
com.easemob.im.api中ApiCallback的使用
参数类型为ApiCallback的com.easemob.im.api中的方法修饰符和类型方法说明okhttp3.CallContactApi.addContactAsync(String ownerUsername, String friendUsername, ApiCallback<EMAddContactResult> _callback) 添加好友 (asynchronously) 添加好友,好友必须是和当前用户在一个 App Key 下的用户。okhttp3.CallContactApi.addContactCall(String ownerUsername, String friendUsername, ApiCallback _callback) Build call for addContactokhttp3.CallGroupApi.addGroupAdminAsync(String groupId, EMAddGroupAdmin emAddGroupAdmin, ApiCallback<EMAddGroupAdminResult> _callback) 添加群管理员 (asynchronously) 将一个普通群成员设为为群管理员。okhttp3.CallGroupApi.addGroupAdminCall(String groupId, EMAddGroupAdmin emAddGroupAdmin, ApiCallback _callback) Build call for addGroupAdminokhttp3.CallThreadApi.addMultipleUsersToThreadAsync(String threadId, EMAddMultipleUsersToThread emAddMultipleUsersToThread, ApiCallback<EMAddMultipleUsersToThreadResult> _callback) 用户批量加入子区 (asynchronously) 用户批量加入指定的子区。okhttp3.CallThreadApi.addMultipleUsersToThreadCall(String threadId, EMAddMultipleUsersToThread emAddMultipleUsersToThread, ApiCallback _callback) Build call for addMultipleUsersToThreadokhttp3.CallGroupApi.addMultipleUserToGroupAsync(String groupId, EMAddMultipleUserToGroup emAddMultipleUserToGroup, ApiCallback<EMAddMultipleUserToGroupResult> _callback) 批量添加群组成员 (asynchronously) 一次为群组添加多个成员,每次最多可以添加 60 位成员。okhttp3.CallGroupApi.addMultipleUserToGroupBlockListAsync(String groupId, EMAddMultipleUserToGroupBlockList emAddMultipleUserToGroupBlockList, ApiCallback<EMAddMultipleUserToGroupBlockListResult> _callback) 批量添加用户至群组黑名单 (asynchronously) 将多个用户添加至群组黑名单,一次最多可以添加 60 个用户。okhttp3.CallGroupApi.addMultipleUserToGroupBlockListCall(String groupId, EMAddMultipleUserToGroupBlockList emAddMultipleUserToGroupBlockList, ApiCallback _callback) Build call for addMultipleUserToGroupBlockListokhttp3.CallGroupApi.addMultipleUserToGroupCall(String groupId, EMAddMultipleUserToGroup emAddMultipleUserToGroup, ApiCallback _callback) Build call for addMultipleUserToGroupokhttp3.CallGroupApi.addMultipleUserToGroupWhiteListAsync(String groupId, EMAddMultipleUserToGroupWhiteList emAddMultipleUserToGroupWhiteList, ApiCallback<EMAddMultipleUserToGroupWhiteListResult> _callback) 批量添加用户至群组白名单 (asynchronously) 添加多个用户至群组白名单。okhttp3.CallGroupApi.addMultipleUserToGroupWhiteListCall(String groupId, EMAddMultipleUserToGroupWhiteList emAddMultipleUserToGroupWhiteList, ApiCallback _callback) Build call for addMultipleUserToGroupWhiteListokhttp3.CallRoomApi.addMultipleUserToRoomAsync(String chatroomId, EMAddMultipleUserToRoom emAddMultipleUserToRoom, ApiCallback<Void> _callback) 批量添加聊天室成员 (asynchronously) 向聊天室添加多位用户,一次性最多可添加 60 位用户。okhttp3.CallRoomApi.addMultipleUserToRoomBlockListAsync(String chatroomId, EMAddMultipleUserToRoomBlockList emAddMultipleUserToRoomBlockList, ApiCallback<EMAddMultipleUserToRoomBlockListResult> _callback) 批量添加用户至聊天室黑名单 (asynchronously) 将多个用户加入指定聊天室的黑名单。okhttp3.CallRoomApi.addMultipleUserToRoomBlockListCall(String chatroomId, EMAddMultipleUserToRoomBlockList emAddMultipleUserToRoomBlockList, ApiCallback _callback) Build call for addMultipleUserToRoomBlockListokhttp3.CallRoomApi.addMultipleUserToRoomCall(String chatroomId, EMAddMultipleUserToRoom emAddMultipleUserToRoom, ApiCallback _callback) Build call for addMultipleUserToRoomokhttp3.CallRoomApi.addMultipleUserToRoomWhiteListAsync(String chatroomId, EMAddMultipleUserToRoomWhiteList emAddMultipleUserToRoomWhiteList, ApiCallback<EMAddMultipleUserToRoomWhiteListResult> _callback) 批量添加用户至聊天室白名单 (asynchronously) 添加多个用户至聊天室白名单。okhttp3.CallRoomApi.addMultipleUserToRoomWhiteListCall(String chatroomId, EMAddMultipleUserToRoomWhiteList emAddMultipleUserToRoomWhiteList, ApiCallback _callback) Build call for addMultipleUserToRoomWhiteListokhttp3.CallRoomApi.addRoomAdminAsync(String chatroomId, EMAddRoomAdmin emAddRoomAdmin, ApiCallback<EMAddRoomAdminResult> _callback) 添加聊天室管理员 (asynchronously) 将一个聊天室成员设置为聊天室管理员。okhttp3.CallRoomApi.addRoomAdminCall(String chatroomId, EMAddRoomAdmin emAddRoomAdmin, ApiCallback _callback) Build call for addRoomAdminokhttp3.CallRoomApi.addRoomSuperAdminAsync(EMAddRoomSuperAdmin emAddRoomSuperAdmin, ApiCallback<EMAddRoomSuperAdminResult> _callback) 添加超级管理员 (asynchronously) 添加一个聊天室超级管理员。okhttp3.CallRoomApi.addRoomSuperAdminCall(EMAddRoomSuperAdmin emAddRoomSuperAdmin, ApiCallback _callback) Build call for addRoomSuperAdminokhttp3.CallBlockApi.addUserToBlockListAsync(String ownerUsername, EMAddUserToBlockList emAddUserToBlockList, ApiCallback<EMAddUserToBlockListResult> _callback) 添加用户至黑名单 (asynchronously) 将一个或多个用户添加用户到黑名单。okhttp3.CallBlockApi.addUserToBlockListCall(String ownerUsername, EMAddUserToBlockList emAddUserToBlockList, ApiCallback _callback) Build call for addUserToBlockListokhttp3.CallGroupApi.addUserToGroupAsync(String groupId, String username, ApiCallback<EMAddUserToGroupResult> _callback) 添加单个群组成员 (asynchronously) 每次添加一个群成员。okhttp3.CallGroupApi.addUserToGroupBlockListAsync(String groupId, String username, ApiCallback<EMAddUserToGroupBlockListResult> _callback) 添加单个用户至群组黑名单 (asynchronously) 将单个用户添加至群组黑名单。okhttp3.CallGroupApi.addUserToGroupBlockListCall(String groupId, String username, ApiCallback _callback) Build call for addUserToGroupBlockListokhttp3.CallGroupApi.addUserToGroupCall(String groupId, String username, ApiCallback _callback) Build call for addUserToGroupokhttp3.CallGroupApi.addUserToGroupWhiteListAsync(String groupId, String username, ApiCallback<EMAddUserToGroupWhiteListResult> _callback) 添加单个用户至群组白名单 (asynchronously) 将指定的单个用户添加至群组白名单。okhttp3.CallGroupApi.addUserToGroupWhiteListCall(String groupId, String username, ApiCallback _callback) Build call for addUserToGroupWhiteListokhttp3.CallRoomApi.addUserToRoomAsync(String chatroomId, String username, ApiCallback<EMAddUserToRoomResult> _callback) 添加单个聊天室成员 (asynchronously) 向聊天室添加一个成员。okhttp3.CallRoomApi.addUserToRoomBlockListAsync(String chatroomId, String username, ApiCallback<EMAddUserToRoomBlockListResult> _callback) 添加单个用户至聊天室黑名单 (asynchronously) 查询一个聊天室黑名单中的用户列表。okhttp3.CallRoomApi.addUserToRoomBlockListCall(String chatroomId, String username, ApiCallback _callback) Build call for addUserToRoomBlockListokhttp3.CallRoomApi.addUserToRoomCall(String chatroomId, String username, ApiCallback _callback) Build call for addUserToRoomokhttp3.CallRoomApi.addUserToRoomWhiteListAsync(String chatroomId, String username, ApiCallback<EMAddUserToRoomWhiteListResult> _callback) 添加单个用户至聊天室白名单 (asynchronously) 将单个用户添加至聊天室白名单。okhttp3.CallRoomApi.addUserToRoomWhiteListCall(String chatroomId, String username, ApiCallback _callback) Build call for addUserToRoomWhiteListokhttp3.CallMetadataApi.batchCustomGroupMemberAttributeAsync(String groupId, List<EMBatchCustomGroupMemberAttribute> emBatchCustomGroupMemberAttribute, ApiCallback<EMBatchCustomGroupMemberAttributeResult> _callback) 批量设置群成员自定义属性 (asynchronously) 批量设置群成员的自定义属性(key-value),例如,在群组中的昵称和头像等。okhttp3.CallMetadataApi.batchCustomGroupMemberAttributeCall(String groupId, List<EMBatchCustomGroupMemberAttribute> emBatchCustomGroupMemberAttribute, ApiCallback _callback) Build call for batchCustomGroupMemberAttributeokhttp3.CallGroupApi.checkUserJoinedGroupAsync(String groupId, String username, ApiCallback<EMCheckUserJoinedGroupResult> _callback) 查看指定用户是否已加入群组 (asynchronously) 查看单个用户是否已加入了指定的群组。okhttp3.CallGroupApi.checkUserJoinedGroupCall(String groupId, String username, ApiCallback _callback) Build call for checkUserJoinedGroupokhttp3.CallGroupApi.createGroupAsync(EMCreateGroup emCreateGroup, ApiCallback<EMCreateGroupResult> _callback) 创建群组 (asynchronously) 创建一个群组,并设置群组名称、群组描述、公开群/私有群属性、群成员最大人数(包括群主)、加入公开群是否需要批准、群主、群成员和群组扩展信息。okhttp3.CallGroupApi.createGroupCall(EMCreateGroup emCreateGroup, ApiCallback _callback) Build call for createGroupokhttp3.CallPushApi.createOfflinePushTemplateAsync(EMCreateOfflinePushTemplate emCreateOfflinePushTemplate, ApiCallback<EMCreateOfflinePushTemplateResult> _callback) 创建离线推送模板 (asynchronously) 创建离线推送消息模板,包括默认模板 default 和自定模板。okhttp3.CallPushApi.createOfflinePushTemplateCall(EMCreateOfflinePushTemplate emCreateOfflinePushTemplate, ApiCallback _callback) Build call for createOfflinePushTemplateokhttp3.CallRoomApi.createRoomAsync(EMCreateRoom emCreateRoom, ApiCallback<EMCreateRoomResult> _callback) 创建聊天室 (asynchronously) 创建一个聊天室,需设置聊天室名称、聊天室描述、聊天室成员最大人数(包括管理员)、聊天室管理员和普通成员以及聊天室扩展信息。okhttp3.CallRoomApi.createRoomCall(EMCreateRoom emCreateRoom, ApiCallback _callback) Build call for createRoomokhttp3.CallThreadApi.createThreadAsync(EMCreateThread emCreateThread, ApiCallback<EMCreateThreadResult> _callback) 创建子区 (asynchronously) 创建子区。okhttp3.CallThreadApi.createThreadCall(EMCreateThread emCreateThread, ApiCallback _callback) Build call for createThreadokhttp3.CallUserApi.createUsersAsync(List<EMCreateUser> emCreateUser, ApiCallback<EMCreateUsersResult> _callback) 批量注册用户 (asynchronously) 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E6%89%B9%E9%87%8F%E6%B3%A8%E5%86%8C%E7%94%A8%E6%88%B7okhttp3.CallUserApi.createUsersCall(List<EMCreateUser> emCreateUser, ApiCallback _callback) Build call for createUsersokhttp3.CallMetadataApi.customGroupMemberAttributeAsync(String groupId, String username, EMCustomGroupMemberAttribute emCustomGroupMemberAttribute, ApiCallback<EMCustomGroupMemberAttributeResult> _callback) 设置群成员自定义属性 (asynchronously) 设置群成员自定义属性。okhttp3.CallMetadataApi.customGroupMemberAttributeCall(String groupId, String username, EMCustomGroupMemberAttribute emCustomGroupMemberAttribute, ApiCallback _callback) Build call for customGroupMemberAttributeokhttp3.CallGroupApi.deleteGroupAsync(String groupId, ApiCallback<EMDeleteGroupResult> _callback) 删除群组 (asynchronously) 删除指定的群组。okhttp3.CallGroupApi.deleteGroupCall(String groupId, ApiCallback _callback) Build call for deleteGroupokhttp3.CallGroupApi.deleteGroupShareFileAsync(String groupId, String fileId, ApiCallback<EMDeleteGroupShareFileResult> _callback) 删除群组共享文件 (asynchronously) 根据指定的群组 ID 与 文件 ID(file_id)删除群组共享文件,文件 ID 可从 获取群组共享文件 接口的响应中获取。okhttp3.CallGroupApi.deleteGroupShareFileCall(String groupId, String fileId, ApiCallback _callback) Build call for deleteGroupShareFileokhttp3.CallPushApi.deleteOfflinePushTemplateAsync(String name, ApiCallback<EMDeleteOfflinePushTemplateResult> _callback) 删除离线推送模板 (asynchronously) 删除离线消息推送模板。okhttp3.CallPushApi.deleteOfflinePushTemplateCall(String name, ApiCallback _callback) Build call for deleteOfflinePushTemplateokhttp3.CallReactionApi.deleteReactionAsync(String username, String msgId, String message, ApiCallback<EMDeleteReactionResult> _callback) 删除 Reaction (asynchronously) 删除当前用户追加的 Reaction。okhttp3.CallReactionApi.deleteReactionCall(String username, String msgId, String message, ApiCallback _callback) Build call for deleteReactionokhttp3.CallRoomApi.deleteRoomAsync(String chatroomId, ApiCallback<EMDeleteRoomResult> _callback) 删除聊天室 (asynchronously) 删除单个聊天室。okhttp3.CallRoomApi.deleteRoomCall(String chatroomId, ApiCallback _callback) Build call for deleteRoomokhttp3.CallRoomApi.deleteRoomCustomAttributesAsync(String chatroomId, String username, EMDeleteRoomCustomAttributes emDeleteRoomCustomAttributes, ApiCallback<EMDeleteRoomCustomAttributesResult> _callback) 删除聊天室自定义属性 (asynchronously) 用户删除其设置的聊天室自定义属性。okhttp3.CallRoomApi.deleteRoomCustomAttributesCall(String chatroomId, String username, EMDeleteRoomCustomAttributes emDeleteRoomCustomAttributes, ApiCallback _callback) Build call for deleteRoomCustomAttributesokhttp3.CallThreadApi.deleteThreadAsync(String threadId, ApiCallback<EMDeleteThreadResult> _callback) 删除子区 (asynchronously) 删除指定子区。okhttp3.CallThreadApi.deleteThreadCall(String threadId, ApiCallback _callback) Build call for deleteThreadokhttp3.CallUserApi.deleteUserAsync(String username, ApiCallback<EMDeleteUserResult> _callback) 删除用户账号 (asynchronously) 删除单个用户。okhttp3.CallUserApi.deleteUserCall(String username, ApiCallback _callback) Build call for deleteUserokhttp3.CallMetadataApi.deleteUserMetadataAsync(String username, ApiCallback<EMDeleteUserMetadataResult> _callback) 删除用户属性 (asynchronously) 删除单个用户的所有属性。okhttp3.CallMetadataApi.deleteUserMetadataCall(String username, ApiCallback _callback) Build call for deleteUserMetadataokhttp3.CallUserApi.deleteUsersAsync(Integer limit, String cursor, ApiCallback<EMDeleteUsersResult> _callback) 批量删除用户 (asynchronously) 删除某个 App 下指定数量的用户账号。okhttp3.CallUserApi.deleteUsersCall(Integer limit, String cursor, ApiCallback _callback) Build call for deleteUsersokhttp3.CallGroupApi.disableGroupAsync(String groupId, ApiCallback<EMDisableGroupResult> _callback) 封禁群组 (asynchronously) 封禁指定的群组。okhttp3.CallGroupApi.disableGroupCall(String groupId, ApiCallback _callback) Build call for disableGroupokhttp3.CallChatFileApi.downloadChatFileAsync(String fileUuid, String shareSecret, Boolean thumbnail, ApiCallback<File> _callback) 下载文件/下载缩略图 (asynchronously) 可利用该方法下载图片、语音、视频或其他类型的文件。okhttp3.CallChatFileApi.downloadChatFileCall(String fileUuid, String shareSecret, Boolean thumbnail, ApiCallback _callback) Build call for downloadChatFileokhttp3.CallGroupApi.downloadGroupShareFileAsync(String groupId, String fileId, ApiCallback<File> _callback) 下载群组共享文件 (asynchronously) 根据指定的群组 ID 与文件 ID(file_id)下载群组共享文件,文件 ID 可从 获取群组共享文件 接口的响应中获取。okhttp3.CallGroupApi.downloadGroupShareFileCall(String groupId, String fileId, ApiCallback _callback) Build call for downloadGroupShareFileokhttp3.CallGroupApi.enableGroupAsync(String groupId, ApiCallback<EMEnableGroupResult> _callback) 封禁群组 (asynchronously) 解除对指定群组的封禁。okhttp3.CallGroupApi.enableGroupCall(String groupId, ApiCallback _callback) Build call for enableGroupokhttp3.CallRoomApi.forceDeleteRoomCustomAttributesAsync(String chatroomId, String username, EMForceDeleteRoomCustomAttributes emForceDeleteRoomCustomAttributes, ApiCallback<EMForceDeleteRoomCustomAttributesResult> _callback) 强制删除聊天室自定义属性 (asynchronously) 用户强制删除聊天室的自定义属性信息,即该方法除了会删除当前用户设置的聊天室自定义属性,还可以删除其他用户设置的自定义属性。okhttp3.CallRoomApi.forceDeleteRoomCustomAttributesCall(String chatroomId, String username, EMForceDeleteRoomCustomAttributes emForceDeleteRoomCustomAttributes, ApiCallback _callback) Build call for forceDeleteRoomCustomAttributesokhttp3.CallRoomApi.forceSetRoomCustomAttributesAsync(String chatroomId, String username, EMForceSetRoomCustomAttributes emForceSetRoomCustomAttributes, ApiCallback<EMForceSetRoomCustomAttributesResult> _callback) 强制设置聊天室自定义属性 (asynchronously) 用户强制设置指定聊天室的自定义属性信息,即该方法可覆盖其他用户设置的聊天室自定义属性。okhttp3.CallRoomApi.forceSetRoomCustomAttributesCall(String chatroomId, String username, EMForceSetRoomCustomAttributes emForceSetRoomCustomAttributes, ApiCallback _callback) Build call for forceSetRoomCustomAttributesokhttp3.CallUserApi.forceUserLogoutAsync(String username, ApiCallback<EMForceUserLogoutResult> _callback) 强制下线 (asynchronously) 强制用户即将用户状态改为离线,用户需要重新登录才能正常使用。okhttp3.CallUserApi.forceUserLogoutCall(String username, ApiCallback _callback) Build call for forceUserLogoutokhttp3.CallUserApi.forceUserLogoutFromSingleDeviceAsync(String username, String resourceId, ApiCallback<EMForceUserLogoutFromSingleDeviceResult> _callback) 强制用户从单设备下线 (asynchronously) 如果用户在多个设备上登录,你可以调用该接口强制其在某一台设备上下线。okhttp3.CallUserApi.forceUserLogoutFromSingleDeviceCall(String username, String resourceId, ApiCallback _callback) Build call for forceUserLogoutFromSingleDeviceokhttp3.CallContactApi.getAllContactListAsync(String ownerUsername, ApiCallback<EMGetAllContactListResult> _callback) 一次性获取好友列表 (asynchronously) 一次性获取指定用户的好友列表。okhttp3.CallContactApi.getAllContactListCall(String ownerUsername, ApiCallback _callback) Build call for getAllContactListokhttp3.CallUserApi.getAllGloballyMutedUsersAsync(Integer pageNum, Integer pageSize, ApiCallback<EMGetAllGloballyMutedUsersResult> _callback) 查询 app 下的所有全局禁言的用户 (asynchronously) 该方法查询 app 下所有全局禁言的用户及其禁言剩余时间。okhttp3.CallUserApi.getAllGloballyMutedUsersCall(Integer pageNum, Integer pageSize, ApiCallback _callback) Build call for getAllGloballyMutedUsersokhttp3.CallGroupApi.getAppGroupsAsync(Integer limit, String cursor, ApiCallback<EMGetAppGroupsResult> _callback) 获取 App 中的群组 (asynchronously) 分页获取应用下的群组的信息。okhttp3.CallGroupApi.getAppGroupsCall(Integer limit, String cursor, ApiCallback _callback) Build call for getAppGroupsokhttp3.CallBlockApi.getBlockListAsync(String ownerUsername, Integer pageSize, String cursor, ApiCallback<EMGetBlockListResult> _callback) 获取黑名单列表 (asynchronously) 获取指定用户的好友列表。okhttp3.CallBlockApi.getBlockListCall(String ownerUsername, Integer pageSize, String cursor, ApiCallback _callback) Build call for getBlockListokhttp3.CallContactApi.getContactListAsync(String ownerUsername, Integer limit, String cursor, Boolean needReturnRemark, ApiCallback<EMGetContactListResult> _callback) 获取好友列表 (asynchronously) 获取指定用户的好友列表。okhttp3.CallContactApi.getContactListCall(String ownerUsername, Integer limit, String cursor, Boolean needReturnRemark, ApiCallback _callback) Build call for getContactListokhttp3.CallGroupApi.getGroupAdminListAsync(String groupId, ApiCallback<EMGetGroupAdminListResult> _callback) 获取群管理员列表 (asynchronously) 获取群组管理员列表。okhttp3.CallGroupApi.getGroupAdminListCall(String groupId, ApiCallback _callback) Build call for getGroupAdminListokhttp3.CallGroupApi.getGroupAnnouncementAsync(String groupId, ApiCallback<EMGetGroupAnnouncementResult> _callback) 获取群组公告 (asynchronously) 获取指定群组 ID 的群组公告。okhttp3.CallGroupApi.getGroupAnnouncementCall(String groupId, ApiCallback _callback) Build call for getGroupAnnouncementokhttp3.CallGroupApi.getGroupBlockListAsync(String groupId, ApiCallback<EMGetGroupBlockListResult> _callback) 查询群组黑名单 (asynchronously) 查询一个群组黑名单中的用户列表。okhttp3.CallGroupApi.getGroupBlockListCall(String groupId, ApiCallback _callback) Build call for getGroupBlockListokhttp3.CallGroupApi.getGroupInfoAsync(String groupId, ApiCallback<EMGetGroupInfoResult> _callback) 获取群组详情 (asynchronously) 可以获取一个或多个群组的详情,最多可获取 100 个群组的详情。okhttp3.CallGroupApi.getGroupInfoCall(String groupId, ApiCallback _callback) Build call for getGroupInfookhttp3.CallMetadataApi.getGroupMemberAllCustomAttributeAsync(String groupId, String username, ApiCallback<EMGetGroupMemberAllCustomAttributeResult> _callback) 获取单个群成员的所有自定义属性 (asynchronously) 获取单个群成员的所有自定义属性。okhttp3.CallMetadataApi.getGroupMemberAllCustomAttributeCall(String groupId, String username, ApiCallback _callback) Build call for getGroupMemberAllCustomAttributeokhttp3.CallGroupApi.getGroupMemberCountAsync(String groupId, ApiCallback<EMGetGroupMemberCountResult> _callback) 获取群组成员数量 (asynchronously) 获取群组成员数量。okhttp3.CallGroupApi.getGroupMemberCountCall(String groupId, ApiCallback _callback) Build call for getGroupMemberCountokhttp3.CallGroupApi.getGroupMemberListAsync(String groupId, Integer pagenum, Integer pagesize, ApiCallback<EMGetGroupMemberListResult> _callback) 分页获取群成员列表 (asynchronously) 可以分页获取群组成员列表。okhttp3.CallGroupApi.getGroupMemberListCall(String groupId, Integer pagenum, Integer pagesize, ApiCallback _callback) Build call for getGroupMemberListokhttp3.CallGroupApi.getGroupMuteListAsync(String groupId, ApiCallback<EMGetGroupMuteListResult> _callback) 获取禁言列表 (asynchronously) 获取当前群组的禁言用户列表。okhttp3.CallGroupApi.getGroupMuteListCall(String groupId, ApiCallback _callback) Build call for getGroupMuteListokhttp3.CallPresenceApi.getGroupOnlineMemberCountAsync(String groupId, Integer queryType, ApiCallback<EMGetGroupOnlineMemberCountResult> _callback) 查询单个群组的在线成员数量 (asynchronously) 你可以查询单个群组的在线成员数量。okhttp3.CallPresenceApi.getGroupOnlineMemberCountCall(String groupId, Integer queryType, ApiCallback _callback) Build call for getGroupOnlineMemberCountokhttp3.CallGroupApi.getGroupShareFileAsync(String groupId, Integer pagenum, Integer pagesize, ApiCallback<EMGetGroupShareFileResult> _callback) 获取群组共享文件 (asynchronously) 可以分页获取指定群组 ID 的群组共享文件。okhttp3.CallGroupApi.getGroupShareFileCall(String groupId, Integer pagenum, Integer pagesize, ApiCallback _callback) Build call for getGroupShareFileokhttp3.CallGroupApi.getGroupWhiteListAsync(String groupId, ApiCallback<EMGetGroupWhiteListResult> _callback) 查询群组白名单 (asynchronously) 查询群组白名单中的用户列表。okhttp3.CallGroupApi.getGroupWhiteListCall(String groupId, ApiCallback _callback) Build call for getGroupWhiteListokhttp3.CallMetadataApi.getMultipleGroupMembersAttributesAsync(String groupId, EMGetMultipleGroupMembersAttributes emGetMultipleGroupMembersAttributes, ApiCallback<EMGetMultipleGroupMembersAttributes> _callback) 根据属性 key 获取多个群成员的自定义属性 (asynchronously) 根据指定的属性 key 获取多个群成员的自定义属性。okhttp3.CallMetadataApi.getMultipleGroupMembersAttributesCall(String groupId, EMGetMultipleGroupMembersAttributes emGetMultipleGroupMembersAttributes, ApiCallback _callback) Build call for getMultipleGroupMembersAttributesokhttp3.CallMetadataApi.getMultipleUserMetadataAsync(EMGetMultipleUserMetadata emGetMultipleUserMetadata, ApiCallback<EMGetMultipleUserMetadataResult> _callback) 批量获取用户属性 (asynchronously) 根据指定的用户 ID 列表和属性列表,查询用户属性。okhttp3.CallMetadataApi.getMultipleUserMetadataCall(EMGetMultipleUserMetadata emGetMultipleUserMetadata, ApiCallback _callback) Build call for getMultipleUserMetadataokhttp3.CallPresenceApi.getMultipleUserPresenceStatusAsync(String username, EMGetMultipleUsersPresenceStatus emGetMultipleUsersPresenceStatus, ApiCallback<EMGetMultipleUsersPresenceStatusResult> _callback) 批量获取在线状态信息 (asynchronously) 你一次可获取多个用户的在线状态信息。okhttp3.CallPresenceApi.getMultipleUserPresenceStatusCall(String username, EMGetMultipleUsersPresenceStatus emGetMultipleUsersPresenceStatus, ApiCallback _callback) Build call for getMultipleUserPresenceStatusokhttp3.CallRoomApi.getMuteRoomMemberListAsync(String chatroomId, ApiCallback<EMGetMuteRoomMemberListResult> _callback) 获取禁言列表 (asynchronously) 获取当前聊天室的禁言用户列表。okhttp3.CallRoomApi.getMuteRoomMemberListCall(String chatroomId, ApiCallback _callback) Build call for getMuteRoomMemberListokhttp3.CallUserApi.getOfflineMessageStatusAsync(String username, String msgid, ApiCallback<EMGetOfflineMessageStatusResult> _callback) 获取指定离线消息的投递状态 (asynchronously) 获取用户的指定离线消息的投递状态,即查看该消息是否已投递。okhttp3.CallUserApi.getOfflineMessageStatusCall(String username, String msgid, ApiCallback _callback) Build call for getOfflineMessageStatusokhttp3.CallPushApi.getOfflinePushAsync(String username, String chattype, String key, ApiCallback<EMGetOfflinePushResult> _callback) 查询离线推送设置 (asynchronously) 查询指定单聊、指定群聊或全局的离线推送设置。okhttp3.CallPushApi.getOfflinePushCall(String username, String chattype, String key, ApiCallback _callback) Build call for getOfflinePushokhttp3.CallPushApi.getOfflinePushTemplateAsync(String name, ApiCallback<EMGetOfflinePushTemplateResult> _callback) 查询离线推送模板 (asynchronously) 查询离线推送消息使用的模板。okhttp3.CallPushApi.getOfflinePushTemplateCall(String name, ApiCallback _callback) Build call for getOfflinePushTemplateokhttp3.CallPushApi.getPushBindingInfoAsync(String username, ApiCallback<EMGetPushBindingInfoResult> _callback) 查询推送绑定信息 (asynchronously) 查询当前用户的所有设备的推送绑定信息。okhttp3.CallPushApi.getPushBindingInfoCall(String username, ApiCallback _callback) Build call for getPushBindingInfookhttp3.CallPushApi.getPushPreferredLanguageAsync(String username, ApiCallback<EMGetPushPreferredLanguageResult> _callback) 获取推送通知的首选语言 (asynchronously) 获取推送通知的首选语言。okhttp3.CallPushApi.getPushPreferredLanguageCall(String username, ApiCallback _callback) Build call for getPushPreferredLanguageokhttp3.CallReactionApi.getReactionAsync(String username, List<String> msgIdList, String msgType, String groupId, ApiCallback<EMGetReactionResult> _callback) 根据消息 ID 获取 Reaction (asynchronously) 该方法根据单聊或群聊中的消息 ID 获取单个或多个消息的 Reaction 信息,包括 Reaction ID、使用的表情 ID、以及使用该 Reaction 的用户 ID 及用户人数。okhttp3.CallReactionApi.getReactionCall(String username, List<String> msgIdList, String msgType, String groupId, ApiCallback _callback) Build call for getReactionokhttp3.CallReactionApi.getReactionDetailAsync(String username, String msgId, String message, Integer limit, String cursor, ApiCallback<EMGetReactionDetailResult> _callback) 根据消息 ID 和表情 ID 获取 Reaction 信息 (asynchronously) 在单聊或群聊场景中对单条消息创建或追加 Reaction。okhttp3.CallReactionApi.getReactionDetailCall(String username, String msgId, String message, Integer limit, String cursor, ApiCallback _callback) Build call for getReactionDetailokhttp3.CallRoomApi.getRoomAdminListAsync(String chatroomId, ApiCallback<EMGetRoomAdminListResult> _callback) 获取聊天室管理员列表 (asynchronously) 获取聊天室管理员列表的接口。okhttp3.CallRoomApi.getRoomAdminListCall(String chatroomId, ApiCallback _callback) Build call for getRoomAdminListokhttp3.CallRoomApi.getRoomAnnouncementAsync(String chatroomId, ApiCallback<EMGetRoomAnnouncementResult> _callback) 获取聊天室公告 (asynchronously) 获取指定聊天室 ID 的聊天室公告。okhttp3.CallRoomApi.getRoomAnnouncementCall(String chatroomId, ApiCallback _callback) Build call for getRoomAnnouncementokhttp3.CallRoomApi.getRoomBlockListAsync(String chatroomId, ApiCallback<EMGetRoomBlockListResult> _callback) 查询聊天室黑名单 (asynchronously) 查询一个聊天室黑名单中的用户列表。okhttp3.CallRoomApi.getRoomBlockListCall(String chatroomId, ApiCallback _callback) Build call for getRoomBlockListokhttp3.CallRoomApi.getRoomCustomAttributesAsync(String chatroomId, EMGetRoomCustomAttributes emGetRoomCustomAttributes, ApiCallback<EMGetRoomCustomAttributesResult> _callback) 获取聊天室自定义属性 (asynchronously) 获取指定聊天室的自定义属性信息。okhttp3.CallRoomApi.getRoomCustomAttributesCall(String chatroomId, EMGetRoomCustomAttributes emGetRoomCustomAttributes, ApiCallback _callback) Build call for getRoomCustomAttributesokhttp3.CallRoomApi.getRoomInfoAsync(String chatroomId, ApiCallback<EMGetRoomInfoResult> _callback) 查询聊天室详情 (asynchronously) 查询一个聊天室的详情。okhttp3.CallRoomApi.getRoomInfoCall(String chatroomId, ApiCallback _callback) Build call for getRoomInfookhttp3.CallRoomApi.getRoomListAsync(Integer limit, String cursor, ApiCallback<EMGetRoomListResult> _callback) 获取 app 中的聊天室 (asynchronously) 分页获取应用下的聊天室列表和信息。okhttp3.CallRoomApi.getRoomListCall(Integer limit, String cursor, ApiCallback _callback) Build call for getRoomListokhttp3.CallRoomApi.getRoomMemberCountAsync(String chatroomId, ApiCallback<EMGetRoomMemberCountResult> _callback) 获取聊天室成员数量 (asynchronously) 获取聊天室成员数量。okhttp3.CallRoomApi.getRoomMemberCountCall(String chatroomId, ApiCallback _callback) Build call for getRoomMemberCountokhttp3.CallRoomApi.getRoomMemberListAsync(String chatroomId, Integer pagenum, Integer pagesize, ApiCallback<EMGetRoomMemberListResult> _callback) 分页获取聊天室成员列表 (asynchronously) 可以分页获取聊天室成员列表。okhttp3.CallRoomApi.getRoomMemberListCall(String chatroomId, Integer pagenum, Integer pagesize, ApiCallback _callback) Build call for getRoomMemberListokhttp3.CallRoomApi.getRoomSuperAdminListAsync(Integer pagenum, Integer pagesize, ApiCallback<EMGetRoomSuperAdminListResult> _callback) 分页获取超级管理员列表 (asynchronously) 可以分页获取超级管理员列表的接口。okhttp3.CallRoomApi.getRoomSuperAdminListCall(Integer pagenum, Integer pagesize, ApiCallback _callback) Build call for getRoomSuperAdminListokhttp3.CallRoomApi.getRoomWhiteListAsync(String chatroomId, ApiCallback<EMGetRoomWhiteListResult> _callback) 查询聊天室白名单 (asynchronously) 查询一个聊天室白名单中的用户列表。okhttp3.CallRoomApi.getRoomWhiteListCall(String chatroomId, ApiCallback _callback) Build call for getRoomWhiteListokhttp3.CallThreadApi.getThreadMemberListAsync(String threadId, Integer limit, String cursor, ApiCallback<EMGetThreadMemberListResult> _callback) 获取子区成员列表(分页) (asynchronously) 分页获取应用下的子区列表。okhttp3.CallThreadApi.getThreadMemberListCall(String threadId, Integer limit, String cursor, ApiCallback _callback) Build call for getThreadMemberListokhttp3.CallThreadApi.getThreadsUnderAppAsync(Integer limit, String cursor, String sort, ApiCallback<EMGetThreadsUnderAppResult> _callback) 获取 app 中的子区 (asynchronously) 分页获取应用下的子区列表。okhttp3.CallThreadApi.getThreadsUnderAppCall(Integer limit, String cursor, String sort, ApiCallback _callback) Build call for getThreadsUnderAppokhttp3.CallTokenApi.getTokenAsync(EMCreateToken emCreateToken, ApiCallback<EMGetToken> _callback) 获取 Token,可以获取管理员或者用户权限 Token (asynchronously) 管理员权限 Token 可以用来调用环信 Rest API 接口,获取管理员 Token 文档介绍:https://docs-im-beta.easemob.com/document/server-side/easemob_app_token.html,获取用户 Token 文档介绍:https://docs-im-beta.easemob.com/document/server-side/easemob_user_token.htmlokhttp3.CallTokenApi.getTokenCall(EMCreateToken emCreateToken, ApiCallback _callback) Build call for getTokenokhttp3.CallUserApi.getUserAsync(String username, ApiCallback<EMGetUserResult> _callback) 获取用户详情 (asynchronously) 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E5%8D%95%E4%B8%AA%E7%94%A8%E6%88%B7%E7%9A%84%E8%AF%A6%E6%83%85okhttp3.CallUserApi.getUserCall(String username, ApiCallback _callback) Build call for getUserokhttp3.CallUserApi.getUserGlobalMuteAsync(String username, ApiCallback<EMGetUserGlobalMuteResult> _callback) 查询单个用户 ID 全局禁言 (asynchronously) 查询单个用户的单聊、群聊和聊天室的全局禁言详情。okhttp3.CallUserApi.getUserGlobalMuteCall(String username, ApiCallback _callback) Build call for getUserGlobalMuteokhttp3.CallGroupApi.getUserJoinedGroupsAsync(String username, Integer pagenum, Integer pagesize, ApiCallback<EMGetUserJoinedGroupsResult> _callback) 获取单个用户加入的所有群组 (asynchronously) 根据用户 ID 分页获取指定用户加入的所有群组。okhttp3.CallGroupApi.getUserJoinedGroupsCall(String username, Integer pagenum, Integer pagesize, ApiCallback _callback) Build call for getUserJoinedGroupsokhttp3.CallRoomApi.getUserJoinedRoomListAsync(String username, Integer pagenum, Integer pagesize, ApiCallback<EMGetUserJoinedRoomListResult> _callback) 获取用户加入的聊天室 (asynchronously) 根据用户 ID 分页获取该用户加入的聊天室。okhttp3.CallRoomApi.getUserJoinedRoomListCall(String username, Integer pagenum, Integer pagesize, ApiCallback _callback) Build call for getUserJoinedRoomListokhttp3.CallThreadApi.getUserJoinedThreadsAsync(String username, Integer limit, String cursor, String sort, ApiCallback<EMGetUserJoinedThreadsResult> _callback) 获取单个用户加入的所有子区(分页获取) (asynchronously) 根据用户 ID 获取该用户加入的所有子区。okhttp3.CallThreadApi.getUserJoinedThreadsCall(String username, Integer limit, String cursor, String sort, ApiCallback _callback) Build call for getUserJoinedThreadsokhttp3.CallThreadApi.getUserJoinedThreadsUnderGroupAsync(String groupId, String username, Integer limit, String cursor, String sort, ApiCallback<EMGetUserJoinedThreadsUnderGroupResult> _callback) 获取单个用户在指定群组中加入的所有子区 (分页获取) (asynchronously) 根据用户 ID 获取该用户在指定群组中加入的所有子区。okhttp3.CallThreadApi.getUserJoinedThreadsUnderGroupCall(String groupId, String username, Integer limit, String cursor, String sort, ApiCallback _callback) Build call for getUserJoinedThreadsUnderGroupokhttp3.CallMetadataApi.getUserMetadataAsync(String username, ApiCallback<EMGetUserMetadataResult> _callback) 获取用户属性 (asynchronously) 获取单个用户的全部用户属性键值对。okhttp3.CallMetadataApi.getUserMetadataCall(String username, ApiCallback _callback) Build call for getUserMetadataokhttp3.CallMetadataApi.getUserMetadataCapacityAsync(ApiCallback<EMGetUserMetadataCapacityResult> _callback) 设置用户属性 (asynchronously) 取该 app 下所有用户的属性数据大小,单位为字节。okhttp3.CallMetadataApi.getUserMetadataCapacityCall(ApiCallback _callback) Build call for getUserMetadataCapacityokhttp3.CallUserApi.getUserOfflineMessageCountAsync(String username, ApiCallback<EMGetUserOfflineMessageCountResult> _callback) 获取用户离线消息数量 (asynchronously) 文档介绍:https://docs-im-beta.easemob.com/document/server-side/account_system.html#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E7%A6%BB%E7%BA%BF%E6%B6%88%E6%81%AF%E6%95%B0%E9%87%8Fokhttp3.CallUserApi.getUserOfflineMessageCountCall(String username, ApiCallback _callback) Build call for getUserOfflineMessageCountokhttp3.CallUserApi.getUserOnlineLoginDeviceListAsync(String username, ApiCallback<EMGetUserOnlineLoginDeviceListResult> _callback) 获取指定账号的在线登录设备列表 (asynchronously) 多设备登录情况下,你可以调用该接口获取指定账号的在线登录设备列表。okhttp3.CallUserApi.getUserOnlineLoginDeviceListCall(String username, ApiCallback _callback) Build call for getUserOnlineLoginDeviceListokhttp3.CallUserApi.getUserOnlineStateAsync(String username, ApiCallback<EMGetUserOnlineStateResult> _callback) 获取单个用户在线状态 (asynchronously) 查看单个用户是在线还是离线状态。okhttp3.CallUserApi.getUserOnlineStateCall(String username, ApiCallback _callback) Build call for getUserOnlineStateokhttp3.CallUserApi.getUsersAsync(Integer limit, String cursor, ApiCallback<EMGetUsersResult> _callback) 获取用户列表 (asynchronously) 该接口查询多个用户的信息列表,按照用户创建时间顺序返回。okhttp3.CallUserApi.getUsersCall(Integer limit, String cursor, ApiCallback _callback) Build call for getUsersokhttp3.CallUserApi.getUsersOnlineStateAsync(EMGetUsersOnlineState emGetUsersOnlineState, ApiCallback<EMGetUsersOnlineStateResult> _callback) 批量获取用户在线状态 (asynchronously) 批量查看用户是在线还是离线状态,单次请求最多可查看 100 个用户的在线状态。okhttp3.CallUserApi.getUsersOnlineStateCall(EMGetUsersOnlineState emGetUsersOnlineState, ApiCallback _callback) Build call for getUsersOnlineStateokhttp3.CallPresenceApi.getUserSubscriptionListAsync(String username, Integer pageNum, Integer pageSize, ApiCallback<EMGetUserSubscriptionListResult> _callback) 查询订阅列表 (asynchronously) 查询当前用户已订阅在线状态的用户列表。okhttp3.CallPresenceApi.getUserSubscriptionListCall(String username, Integer pageNum, Integer pageSize, ApiCallback _callback) Build call for getUserSubscriptionListokhttp3.CallHistoryMessageApi.historyMessageAsync(String time, ApiCallback<EMGetHistoryMessageResult> _callback) 获取历史消息记录 (asynchronously) 你可以从服务端获取用户发送的历史消息的记录。okhttp3.CallHistoryMessageApi.historyMessageCall(String time, ApiCallback _callback) Build call for historyMessageokhttp3.CallMessageApi.importChatGroupMessageAsync(EMImportChatGroupMessage emImportChatGroupMessage, ApiCallback<EMImportChatGroupMessageResult> _callback) 导入群聊消息 (asynchronously) 你可以在数据迁移时导入群聊消息。okhttp3.CallMessageApi.importChatGroupMessageCall(EMImportChatGroupMessage emImportChatGroupMessage, ApiCallback _callback) Build call for importChatGroupMessageokhttp3.CallMessageApi.importChatUserMessageAsync(EMImportChatUserMessage emImportChatUserMessage, ApiCallback<EMImportChatUserMessageResult> _callback) 导入单聊消息 (asynchronously) 你可以在数据迁移时导入单聊消息。okhttp3.CallMessageApi.importChatUserMessageCall(EMImportChatUserMessage emImportChatUserMessage, ApiCallback _callback) Build call for importChatUserMessageokhttp3.CallContactApi.importContactListAsync(String username, Boolean isSendNotice, EMImportContactList emImportContactList, ApiCallback<EMImportContactListResult> _callback) 导入好友列表 (asynchronously) 你可以调用该接口导入好友列表。okhttp3.CallContactApi.importContactListCall(String username, Boolean isSendNotice, EMImportContactList emImportContactList, ApiCallback _callback) Build call for importContactListokhttp3.CallGroupApi.modifyGroupAnnouncementAsync(String groupId, EMModifyGroupAnnouncement emModifyGroupAnnouncement, ApiCallback<EMModifyGroupAnnouncementResult> _callback) 修改群组公告 (asynchronously) 修改指定群组 ID 的群组公告。okhttp3.CallGroupApi.modifyGroupAnnouncementCall(String groupId, EMModifyGroupAnnouncement emModifyGroupAnnouncement, ApiCallback _callback) Build call for modifyGroupAnnouncementokhttp3.CallGroupApi.modifyGroupAsync(String groupId, EMModifyGroup emModifyGroup, ApiCallback<EMModifyGroupResult> _callback) 修改群组信息 (asynchronously) 修改指定的群组信息,可修改 groupname、description、maxusers、membersonly、allowinvites、invite_need_confirm、public 和 custom 属性。okhttp3.CallGroupApi.modifyGroupCall(String groupId, EMModifyGroup emModifyGroup, ApiCallback _callback) Build call for modifyGroupokhttp3.CallUserApi.modifyPushNicknamesAsync(List<EMModifyPushNickname> emModifyPushNickname, ApiCallback<EMModifyPushNicknamesResult> _callback) 批量修改用户推送昵称 (asynchronously)。okhttp3.CallUserApi.modifyPushNicknamesCall(List<EMModifyPushNickname> emModifyPushNickname, ApiCallback _callback) Build call for modifyPushNicknamesokhttp3.CallRoomApi.modifyRoomAnnouncementAsync(String chatroomId, EMModifyRoomAnnouncement emModifyRoomAnnouncement, ApiCallback<EMModifyRoomAnnouncementResult> _callback) 修改聊天室公告 (asynchronously) 修改指定聊天室 ID 的聊天室公告。okhttp3.CallRoomApi.modifyRoomAnnouncementCall(String chatroomId, EMModifyRoomAnnouncement emModifyRoomAnnouncement, ApiCallback _callback) Build call for modifyRoomAnnouncementokhttp3.CallRoomApi.modifyRoomAsync(String chatroomId, EMModifyRoom emModifyRoom, ApiCallback<EMModifyRoomResult> _callback) 修改聊天室信息 (asynchronously) 修改指定聊天室的信息。okhttp3.CallRoomApi.modifyRoomCall(String chatroomId, EMModifyRoom emModifyRoom, ApiCallback _callback) Build call for modifyRoomokhttp3.CallMessageApi.modifyTextOrCustomizeMessageAsync(String msgId, EMModifyTextOrCustomizeMessage emModifyTextOrCustomizeMessage, ApiCallback<EMModifyTextOrCustomizeMessageResult> _callback) 修改文本或自定义消息 (asynchronously) 修改发送成功的文本消息或自定义消息。okhttp3.CallMessageApi.modifyTextOrCustomizeMessageCall(String msgId, EMModifyTextOrCustomizeMessage emModifyTextOrCustomizeMessage, ApiCallback _callback) Build call for modifyTextOrCustomizeMessageokhttp3.CallThreadApi.modifyThreadAsync(String threadId, EMModifyThread emModifyThread, ApiCallback<EMModifyThreadResult> _callback) 修改子区 (asynchronously) 分页获取应用下的子区列表。okhttp3.CallThreadApi.modifyThreadCall(String threadId, EMModifyThread emModifyThread, ApiCallback _callback) Build call for modifyThreadokhttp3.CallUserApi.modifyUserPasswordAsync(String username, EMModifyUserPassword emModifyUserPassword, ApiCallback<Void> _callback) 修改用户密码 (asynchronously) 通过服务端接口修改用户的登录密码,不需要提供原密码。okhttp3.CallUserApi.modifyUserPasswordCall(String username, EMModifyUserPassword emModifyUserPassword, ApiCallback _callback) Build call for modifyUserPasswordokhttp3.CallGroupApi.muteAllGroupMembersAsync(String groupId, ApiCallback<EMMuteAllGroupMembersResult> _callback) 禁言全体群成员 (asynchronously) 对所有群组成员一键禁言,即将群组的所有成员加入禁言列表。okhttp3.CallGroupApi.muteAllGroupMembersCall(String groupId, ApiCallback _callback) Build call for muteAllGroupMembersokhttp3.CallRoomApi.muteAllRoomMemberAsync(String chatroomId, ApiCallback<EMMuteAllRoomMemberResult> _callback) 禁言聊天室全体成员 (asynchronously) 对所有聊天室成员一键禁言。okhttp3.CallRoomApi.muteAllRoomMemberCall(String chatroomId, ApiCallback _callback) Build call for muteAllRoomMemberokhttp3.CallGroupApi.muteGroupMemberAsync(String groupId, EMMuteGroupMember emMuteGroupMember, ApiCallback<EMMuteGroupMemberResult> _callback) 禁言指定群成员 (asynchronously) 对一个或多个群成员禁言。okhttp3.CallGroupApi.muteGroupMemberCall(String groupId, EMMuteGroupMember emMuteGroupMember, ApiCallback _callback) Build call for muteGroupMemberokhttp3.CallRoomApi.muteRoomMemberAsync(String chatroomId, EMMuteRoomMember emMuteRoomMember, ApiCallback<EMMuteRoomMemberResult> _callback) 禁言聊天室成员 (asynchronously) 禁言单个或多个聊天室成员。okhttp3.CallRoomApi.muteRoomMemberCall(String chatroomId, EMMuteRoomMember emMuteRoomMember, ApiCallback _callback) Build call for muteRoomMemberokhttp3.CallMessageApi.oneWayClearGroupOrRoomRoamingMessagesWithinPeriodAsync(String username, String groupId, BigDecimal delTime, ApiCallback<EMOneWayClearGroupOrRoomRoamingMessagesWithinPeriodResult> _callback) 单向清空指定群组或聊天室会话一段时间内的漫游消息 (asynchronously) 将传入时间戳之前的漫游消息清空,清空后,该用户无法从环信服务端拉取到这些漫游消息。okhttp3.CallMessageApi.oneWayClearGroupOrRoomRoamingMessagesWithinPeriodCall(String username, String groupId, BigDecimal delTime, ApiCallback _callback) Build call for oneWayClearGroupOrRoomRoamingMessagesWithinPeriodokhttp3.CallMessageApi.oneWayClearGroupRoamingMessagesByMsgIdAsync(String username, String groupId, String msgIdList, Boolean isNotify, ApiCallback<EMOneWayClearGroupRoamingMessagesByMsgIdResult> _callback) 根据消息 ID 单向删除群聊漫游消息 (asynchronously) 根据消息 ID 单向删除指定用户的某个群聊会话的一条或多条漫游消息。okhttp3.CallMessageApi.oneWayClearGroupRoamingMessagesByMsgIdCall(String username, String groupId, String msgIdList, Boolean isNotify, ApiCallback _callback) Build call for oneWayClearGroupRoamingMessagesByMsgIdokhttp3.CallMessageApi.oneWayClearUserRoamingMessagesAsync(String username, ApiCallback<EMOneWayClearUserRoamingMessagesResult> _callback) 单向清空指定用户的漫游消息 (asynchronously) 清空后,该用户无法从服务端拉取到漫游消息,而且该用户的所有会话也会被清除,也拉不到会话列表。okhttp3.CallMessageApi.oneWayClearUserRoamingMessagesByMsgIdAsync(String username, String userId, String msgIdList, Boolean isNotify, ApiCallback<EMOneWayClearUserRoamingMessagesByMsgIdResult> _callback) 根据消息 ID 单向删除单聊漫游消息 (asynchronously) 根据消息 ID 单向删除指定用户的单聊会话的一条或多条漫游消息。okhttp3.CallMessageApi.oneWayClearUserRoamingMessagesByMsgIdCall(String username, String userId, String msgIdList, Boolean isNotify, ApiCallback _callback) Build call for oneWayClearUserRoamingMessagesByMsgIdokhttp3.CallMessageApi.oneWayClearUserRoamingMessagesCall(String username, ApiCallback _callback) Build call for oneWayClearUserRoamingMessagesokhttp3.CallMessageApi.oneWayClearUserRoamingMessagesWithinPeriodAsync(String username, String userId, BigDecimal delTime, ApiCallback<EMOneWayClearUserRoamingMessagesWithinPeriodResult> _callback) 单向清空指定单聊会话一段时间内的漫游消息 (asynchronously) 将传入时间戳之前的漫游消息清空,清空后,该用户无法从环信服务端拉取到这些漫游消息。okhttp3.CallMessageApi.oneWayClearUserRoamingMessagesWithinPeriodCall(String username, String userId, BigDecimal delTime, ApiCallback _callback) Build call for oneWayClearUserRoamingMessagesWithinPeriodokhttp3.CallMessageApi.oneWayDeleteConversationAsync(String username, EMOneWayDeleteConversation emOneWayDeleteConversation, ApiCallback<EMOneWayDeleteConversationResult> _callback) 单向删除会话 (asynchronously) 该方法使聊天用户能够从服务器中删除会话。okhttp3.CallMessageApi.oneWayDeleteConversationCall(String username, EMOneWayDeleteConversation emOneWayDeleteConversation, ApiCallback _callback) Build call for oneWayDeleteConversationokhttp3.CallMessageApi.recallMessageAsync(EMRecallMessage emRecallMessage, ApiCallback<EMRecallMessageResult> _callback) 撤回消息 (asynchronously) 发送方可以撤回一条发送成功的消息。okhttp3.CallMessageApi.recallMessageCall(EMRecallMessage emRecallMessage, ApiCallback _callback) Build call for recallMessageokhttp3.CallPushApi.receiverConfigurationTemplateNameAsync(String username, EMReceiverConfigurationTemplateName emReceiverConfigurationTemplateName, ApiCallback<EMReceiverConfigurationTemplateNameResult> _callback) 接收方配置模板名称 (asynchronously) 接收方可以调用该 API 设置推送模板。okhttp3.CallPushApi.receiverConfigurationTemplateNameCall(String username, EMReceiverConfigurationTemplateName emReceiverConfigurationTemplateName, ApiCallback _callback) Build call for receiverConfigurationTemplateNameokhttp3.CallContactApi.removeContactAsync(String ownerUsername, String friendUsername, ApiCallback<EMRemoveContactResult> _callback) 移除好友 (asynchronously) 从用户的好友列表中移除一个用户。okhttp3.CallContactApi.removeContactCall(String ownerUsername, String friendUsername, ApiCallback _callback) Build call for removeContactokhttp3.CallGroupApi.removeGroupAdminAsync(String groupId, String username, ApiCallback<EMRemoveGroupAdminResult> _callback) 移除群管理员 (asynchronously) 将用户的角色从群管理员降为群普通成员。okhttp3.CallGroupApi.removeGroupAdminCall(String groupId, String username, ApiCallback _callback) Build call for removeGroupAdminokhttp3.CallThreadApi.removeMultipleUsersFromThreadAsync(String threadId, EMRemoveMultipleUsersFromThread emRemoveMultipleUsersFromThread, ApiCallback<EMRemoveMultipleUsersFromThreadResult> _callback) 批量踢出子区成员 (asynchronously) 批量踢出子区成员。okhttp3.CallThreadApi.removeMultipleUsersFromThreadCall(String threadId, EMRemoveMultipleUsersFromThread emRemoveMultipleUsersFromThread, ApiCallback _callback) Build call for removeMultipleUsersFromThreadokhttp3.CallRoomApi.removeRoomAdminAsync(String chatroomId, String oldAdmin, ApiCallback<EMRemoveRoomAdminResult> _callback) 移除聊天室管理员 (asynchronously) 将用户的角色从聊天室管理员降为普通聊天室成员。okhttp3.CallRoomApi.removeRoomAdminCall(String chatroomId, String oldAdmin, ApiCallback _callback) Build call for removeRoomAdminokhttp3.CallRoomApi.removeRoomSuperAdminAsync(String superAdmin, ApiCallback<EMRemoveRoomSuperAdminResult> _callback) 撤销超级管理员 (asynchronously) 撤销超级管理员权限,用户将不能再创建聊天室。okhttp3.CallRoomApi.removeRoomSuperAdminCall(String superAdmin, ApiCallback _callback) Build call for removeRoomSuperAdminokhttp3.CallBlockApi.removeUserFromBlockListAsync(String ownerUsername, String blockedUsername, ApiCallback<EMRemoveUserFromBlockListResult> _callback) 从黑名单中移除用户 (asynchronously) 从用户的黑名单中移除用户: 将好友从黑名单中移除后,恢复好友关系,可以正常收发消息; 将非好友从黑名单中移除后,恢复到未添加好友的状态。okhttp3.CallBlockApi.removeUserFromBlockListCall(String ownerUsername, String blockedUsername, ApiCallback _callback) Build call for removeUserFromBlockListokhttp3.CallGroupApi.removeUserFromGroupBlockListAsync(String groupId, String username, ApiCallback<EMRemoveUserFromGroupBlockListResult> _callback) 从群组黑名单移除单个用户 (asynchronously) 将指定用户移出群组黑名单。okhttp3.CallGroupApi.removeUserFromGroupBlockListCall(String groupId, String username, ApiCallback _callback) Build call for removeUserFromGroupBlockListokhttp3.CallGroupApi.removeUserFromGroupWhiteListAsync(String groupId, String username, ApiCallback<EMRemoveUserFromGroupWhiteListResult> _callback) 从群组白名单移除用户 (asynchronously) 将指定用户从群组白名单中移除。okhttp3.CallGroupApi.removeUserFromGroupWhiteListCall(String groupId, String username, ApiCallback _callback) Build call for removeUserFromGroupWhiteListokhttp3.CallRoomApi.removeUserFromRoomAsync(String chatroomId, String username, ApiCallback<EMRemoveUserFromRoomResult> _callback) 移除单个聊天室成员 (asynchronously) 从聊天室移除一个成员。okhttp3.CallRoomApi.removeUserFromRoomBlockListAsync(String chatroomId, String username, ApiCallback<EMRemoveUserFromRoomBlockListResult> _callback) 从聊天室黑名单移出单个用户 (asynchronously) 将指定用户移出聊天室黑名单。okhttp3.CallRoomApi.removeUserFromRoomBlockListCall(String chatroomId, String username, ApiCallback _callback) Build call for removeUserFromRoomBlockListokhttp3.CallRoomApi.removeUserFromRoomCall(String chatroomId, String username, ApiCallback _callback) Build call for removeUserFromRoomokhttp3.CallRoomApi.removeUserFromRoomWhiteListAsync(String chatroomId, String username, ApiCallback<EMRemoveUserFromRoomWhiteListResult> _callback) 将用户移出聊天室白名单 (asynchronously) 将指定用户从聊天室白名单移除。okhttp3.CallRoomApi.removeUserFromRoomWhiteListCall(String chatroomId, String username, ApiCallback _callback) Build call for removeUserFromRoomWhiteListokhttp3.CallGroupApi.removeUserToGroupAsync(String groupId, String username, ApiCallback<EMRemoveUserToGroupResult> _callback) 移除单个群组成员 (asynchronously) 从群中移除指定成员。okhttp3.CallGroupApi.removeUserToGroupCall(String groupId, String username, ApiCallback _callback) Build call for removeUserToGroupokhttp3.CallMessageApi.sendGroupDirectionalMessagesAsync(EMCreateMessage emCreateMessage, ApiCallback<EMSendMessageResult> _callback) 发送群聊定向消息 (asynchronously) 你可以向群组中指定的一个或多个成员发送消息,但单次仅支持指定一个群组。okhttp3.CallMessageApi.sendGroupDirectionalMessagesCall(EMCreateMessage emCreateMessage, ApiCallback _callback) Build call for sendGroupDirectionalMessagesokhttp3.CallMessageApi.sendMessagesToGroupAsync(EMCreateMessage emCreateMessage, ApiCallback<EMSendMessageResult> _callback) 发送群聊消息 (asynchronously) 向群组发送消息。okhttp3.CallMessageApi.sendMessagesToGroupCall(EMCreateMessage emCreateMessage, ApiCallback _callback) Build call for sendMessagesToGroupokhttp3.CallMessageApi.sendMessagesToRoomAsync(EMCreateMessage emCreateMessage, ApiCallback<EMSendMessageResult> _callback) 发送聊天室消息 (asynchronously) 向聊天室发送消息。okhttp3.CallMessageApi.sendMessagesToRoomCall(EMCreateMessage emCreateMessage, ApiCallback _callback) Build call for sendMessagesToRoomokhttp3.CallMessageApi.sendMessagesToUserAsync(EMCreateMessage emCreateMessage, ApiCallback<EMSendMessageResult> _callback) 发送单聊消息 (asynchronously) 给用户发送消息。okhttp3.CallMessageApi.sendMessagesToUserCall(EMCreateMessage emCreateMessage, ApiCallback _callback) Build call for sendMessagesToUserokhttp3.CallMessageApi.sendOnlineUserBroadcastMessagesAsync(EMCreateOnlineUserBroadcastMessage emCreateOnlineUserBroadcastMessage, ApiCallback<EMSendMessageResult> _callback) 向 app 在线用户发送广播消息 (asynchronously) 可通过该接口向 app 下的所有在线用户发送广播消息,支持所有消息类型。okhttp3.CallMessageApi.sendOnlineUserBroadcastMessagesCall(EMCreateOnlineUserBroadcastMessage emCreateOnlineUserBroadcastMessage, ApiCallback _callback) Build call for sendOnlineUserBroadcastMessagesokhttp3.CallMessageApi.sendRoomBroadcastMessagesAsync(EMCreateChatroomBroadcastMessage emCreateChatroomBroadcastMessage, ApiCallback<EMSendMessageResult> _callback) 发送聊天室全局广播消息 (asynchronously) 可通过该接口向 app 下的所有活跃聊天室(聊天室至少存在一个成员,而且曾经至少发送过一条消息)发送广播消息,支持所有消息类型。。okhttp3.CallMessageApi.sendRoomBroadcastMessagesCall(EMCreateChatroomBroadcastMessage emCreateChatroomBroadcastMessage, ApiCallback _callback) Build call for sendRoomBroadcastMessagesokhttp3.CallMessageApi.sendRoomDirectionalMessagesAsync(EMCreateMessage emCreateMessage, ApiCallback<EMSendMessageResult> _callback) 发送聊天室定向消息 (asynchronously) 你可以向聊天室中指定的一个或多个成员发送消息,但单次仅支持指定一个聊天室。okhttp3.CallMessageApi.sendRoomDirectionalMessagesCall(EMCreateMessage emCreateMessage, ApiCallback _callback) Build call for sendRoomDirectionalMessagesokhttp3.CallContactApi.setContactNoteAsync(String ownerUsername, String friendUsername, EMSetContactNote emSetContactNote, ApiCallback<EMSetContactNoteResult> _callback) 设置好友备注 (asynchronously) 你可以调用该接口设置你在当前 app 下的好友的备注,即你和要设置备注的好友需在同一个 App Key 下。okhttp3.CallContactApi.setContactNoteCall(String ownerUsername, String friendUsername, EMSetContactNote emSetContactNote, ApiCallback _callback) Build call for setContactNoteokhttp3.CallPushApi.setOfflinePushNewAsync(String username, String chattype, String key, EMSetOfflinePushNew emSetOfflinePushNew, ApiCallback<EMSetOfflinePushNewResult> _callback) 设置离线推送(新) (asynchronously) 你可以设置全局离线推送的通知方式和免打扰模式以及单个单聊或群聊会话的离线推送设置。okhttp3.CallPushApi.setOfflinePushNewCall(String username, String chattype, String key, EMSetOfflinePushNew emSetOfflinePushNew, ApiCallback _callback) Build call for setOfflinePushNewokhttp3.CallPushApi.setOfflinePushOldAsync(String username, EMSetOfflinePushOld emSetOfflinePushOld, ApiCallback<Void> _callback) 离线推送设置。okhttp3.CallPushApi.setOfflinePushOldCall(String username, EMSetOfflinePushOld emSetOfflinePushOld, ApiCallback _callback) Build call for setOfflinePushOldokhttp3.CallPushApi.setPushBindingInfoAsync(String username, EMSetPushBindingInfo emSetPushBindingInfo, ApiCallback<EMSetPushBindingInfoResult> _callback) 绑定和解绑推送信息 (asynchronously) 推送消息时,设备与推送信息会进行绑定,包括设备 ID、推送证书和 device token。okhttp3.CallPushApi.setPushBindingInfoCall(String username, EMSetPushBindingInfo emSetPushBindingInfo, ApiCallback _callback) Build call for setPushBindingInfookhttp3.CallPushApi.setPushPreferredLanguageAsync(String username, EMSetPushPreferredLanguage emSetPushPreferredLanguage, ApiCallback<EMSetPushPreferredLanguageResult> _callback) 设置推送通知的首选语言 (asynchronously) 设置离线推送消息的首选语言。okhttp3.CallPushApi.setPushPreferredLanguageCall(String username, EMSetPushPreferredLanguage emSetPushPreferredLanguage, ApiCallback _callback) Build call for setPushPreferredLanguageokhttp3.CallReactionApi.setReactionAsync(String username, EMSetReaction emSetReaction, ApiCallback<EMSetReactionResult> _callback) 创建/追加 Reaction (asynchronously) 在单聊或群聊场景中对单条消息创建或追加 Reaction。okhttp3.CallReactionApi.setReactionCall(String username, EMSetReaction emSetReaction, ApiCallback _callback) Build call for setReactionokhttp3.CallRoomApi.setRoomCustomAttributesAsync(String chatroomId, String username, EMSetRoomCustomAttributes emSetRoomCustomAttributes, ApiCallback<EMSetRoomCustomAttributesResult> _callback) 设置聊天室自定义属性 (asynchronously) 指定用户设置特定聊天室的自定义属性。okhttp3.CallRoomApi.setRoomCustomAttributesCall(String chatroomId, String username, EMSetRoomCustomAttributes emSetRoomCustomAttributes, ApiCallback _callback) Build call for setRoomCustomAttributesokhttp3.CallUserApi.setUserGlobalMuteAsync(EMSetUserGlobalMute emSetUserGlobalMute, ApiCallback<EMSetUserGlobalMuteResult> _callback) 设置用户全局禁言 (asynchronously) 设置单个用户 ID 的单聊、群组或聊天室消息的全局禁言。okhttp3.CallUserApi.setUserGlobalMuteCall(EMSetUserGlobalMute emSetUserGlobalMute, ApiCallback _callback) Build call for setUserGlobalMuteokhttp3.CallMetadataApi.setUserMetadataAsync(String username, Map<String, String> metadata, ApiCallback<EMSetUserMetadataResult> _callback) 设置用户属性 (asynchronously) 用户属性的内容为一个或多个纯文本键值对,默认单个用户的属性总长度不能超过 2 KB,默认单个 app 下所有用户的属性总长度不能超过 10 GB。okhttp3.CallMetadataApi.setUserMetadataCall(String username, Map<String, String> metadata, ApiCallback _callback) Build call for setUserMetadataokhttp3.CallPresenceApi.setUserPresenceStatusAsync(String username, String resource, String status, EMSetUserPresenceStatus emSetUserPresenceStatus, ApiCallback<EMSetUserPresenceStatusResult> _callback) 设置用户在线状态信息 (asynchronously) 可以设置用户在指定设备的在线状态信息。okhttp3.CallPresenceApi.setUserPresenceStatusCall(String username, String resource, String status, EMSetUserPresenceStatus emSetUserPresenceStatus, ApiCallback _callback) Build call for setUserPresenceStatusokhttp3.CallPresenceApi.subscribeMultipleUsersPresenceStatusAsync(String username, String expiry, EMSubscribeMultipleUsersPresenceStatus emSubscribeMultipleUsersPresenceStatus, ApiCallback<EMSubscribeMultipleUsersPresenceStatusResult> _callback) 批量订阅在线状态 (asynchronously) 一次可订阅多个用户的在线状态。okhttp3.CallPresenceApi.subscribeMultipleUsersPresenceStatusCall(String username, String expiry, EMSubscribeMultipleUsersPresenceStatus emSubscribeMultipleUsersPresenceStatus, ApiCallback _callback) Build call for subscribeMultipleUsersPresenceStatusokhttp3.CallGroupApi.unmuteAllGroupMembersAsync(String groupId, ApiCallback<EMUnmuteAllGroupMembersResult> _callback) 解除全员禁言 (asynchronously) 一键取消对群组全体成员的禁言。okhttp3.CallGroupApi.unmuteAllGroupMembersCall(String groupId, ApiCallback _callback) Build call for unmuteAllGroupMembersokhttp3.CallRoomApi.unmuteAllRoomMemberAsync(String chatroomId, ApiCallback<EMUnmuteAllRoomMemberResult> _callback) 解除聊天室全员禁言 (asynchronously) 一键取消对聊天室全体成员的禁言。okhttp3.CallRoomApi.unmuteAllRoomMemberCall(String chatroomId, ApiCallback _callback) Build call for unmuteAllRoomMemberokhttp3.CallGroupApi.unmuteGroupMemberAsync(String groupId, String username, ApiCallback<EMUnmuteGroupMemberResult> _callback) 解除成员禁言 (asynchronously) 将一个群成员移出禁言列表。okhttp3.CallGroupApi.unmuteGroupMemberCall(String groupId, String username, ApiCallback _callback) Build call for unmuteGroupMemberokhttp3.CallRoomApi.unmuteRoomMemberAsync(String chatroomId, String username, ApiCallback<EMUnmuteRoomMemberResult> _callback) 解除聊天室禁言成员 (asynchronously) 解除对一个聊天室成员的禁言。okhttp3.CallRoomApi.unmuteRoomMemberCall(String chatroomId, String username, ApiCallback _callback) Build call for unmuteRoomMemberokhttp3.CallPresenceApi.unsubscribeMultipleUsersPresenceStatusAsync(String username, List<String> requestBody, ApiCallback<EMUnsubscribeMultipleUsersPresenceStatusResult> _callback) 取消订阅多个用户的在线状态 (asynchronously) 取消订阅多个用户的在线状态。okhttp3.CallPresenceApi.unsubscribeMultipleUsersPresenceStatusCall(String username, List<String> requestBody, ApiCallback _callback) Build call for unsubscribeMultipleUsersPresenceStatusokhttp3.CallChatFileApi.uploadChatFileAsync(Boolean restrictAccess, File _file, ApiCallback<EMUploadChatFileResult> _callback) 上传文件 (asynchronously) 对于附件类型的消息,如图片、语音、视频或其他类型文件,发送消息前需上传文件。okhttp3.CallChatFileApi.uploadChatFileCall(Boolean restrictAccess, File _file, ApiCallback _callback) Build call for uploadChatFileokhttp3.CallGroupApi.uploadGroupShareFileAsync(String groupId, File _file, ApiCallback<EMUploadGroupShareFileResult> _callback) 上传群组共享文件 (asynchronously) 上传指定群组 ID 的群组共享文件。okhttp3.CallGroupApi.uploadGroupShareFileCall(String groupId, File _file, ApiCallback _callback) Build call for uploadGroupShareFileokhttp3.CallUserApi.userActivateAsync(String username, ApiCallback<Void> _callback) 账号解禁 (asynchronously) 被解禁后用户才能恢复登录。okhttp3.CallUserApi.userActivateCall(String username, ApiCallback _callback) Build call for userActivateokhttp3.CallContactApi.userContactCheckAsync(EMUserContactCheck emUserContactCheck, ApiCallback<EMUserContactCheckResult> _callback) 校验好友 (asynchronously) 批量检查用户是否在好友列表中。okhttp3.CallContactApi.userContactCheckCall(EMUserContactCheck emUserContactCheck, ApiCallback _callback) Build call for userContactCheckokhttp3.CallUserApi.userDeactivateAsync(String username, ApiCallback<EMUserDeactivateResult> _callback) 账号封禁 (asynchronously) 环信即时通讯 IM 提供了对用户的禁用以及解禁接口操作,用户若被禁用将立即下线并无法登录进入环信即时通讯 IM,直到被解禁后才能恢复登录。okhttp3.CallUserApi.userDeactivateCall(String username, ApiCallback _callback) Build call for userDeactivate