TencentCloudChatSdkWeb class

A web implementation of the TencentCloudChatSdkPlatform of the TencentCloudChatSdk plugin.

Inheritance

Constructors

TencentCloudChatSdkWeb()
Constructs a TencentCloudChatSdkWeb

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept({required String inviteID, String? data}) Future<V2TimCallback>
override
acceptFriendApplication({required int responseType, required int type, required String userID}) Future<V2TimValueCallback<V2TimFriendOperationResult>>
同意好友申请
override
acceptGroupApplication({required String groupID, String? reason, required String fromUser, required String toUser, int? addTime, int? type, String? webMessageInstance}) Future<V2TimCallback>
同意某一条加群申请
override
addAdvancedMsgListener({required V2TimAdvancedMsgListener listener}) Future<String>
添加高级消息的事件监听器
override
addCommunityListener({required V2TimCommunityListener listener}) Future<String>
inherited
addCommunityMembersToPermissionGroup({required String groupID, required String permissionGroupID, required List<String> memberList}) Future<V2TimValueCallback<List<V2TimPermissionGroupMemberOperationResult>>>
inherited
addConversationListener({required V2TimConversationListener listener}) Future<void>
override
addConversationsToGroup({required String groupName, required List<String> conversationIDList}) Future<V2TimValueCallback<List<V2TimConversationOperationResult>>>
inherited
addFriend({required String userID, String? remark, String? friendGroup, String? addWording, String? addSource, required int addType}) Future<V2TimValueCallback<V2TimFriendOperationResult>>
override
addFriendListener({required V2TimFriendshipListener listener}) Future<void>
override
addFriendsToFriendGroup({required String groupName, required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
添加好友到一个好友分组
override
addGroupListener({required V2TimGroupListener listener}) Future<void>
override
addInvitedSignaling({required V2TimSignalingInfo info}) Future<V2TimCallback>
override
addMessageReaction({required String msgID, required String reactionID}) Future<V2TimCallback>
override
addNativeCallback() → void
override
addSignalingListener({required V2TimSignalingListener listener}) Future<void>
override
addSimpleMsgListener({required V2TimSimpleMsgListener listener}) Future<String>
设置基本消息(文本消息和自定义消息)的事件监听器
override
addToBlackList({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
添加用户到黑名单
override
addTopicPermissionToPermissionGroup({required String groupID, required String permissionGroupID, required Map<String, int> topicPermissionMap}) Future<V2TimValueCallback<List<V2TimTopicOperationResult>>>
inherited
addUIKitListener({required V2TimUIKitListener listener}) String
override
appendMessage({required String createMessageBaseId, required String createMessageAppendId}) Future<V2TimValueCallback<V2TimMessage>>
inherited
callExperimentalAPI({required String api, Object? param}) Future<V2TimValueCallback<Object>>
实验性 API 接口
override
cancel({required String inviteID, String? data}) Future<V2TimCallback>
override
checkAbility() Future<V2TimValueCallback<int>>
能力位检测
inherited
checkFollowType({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFollowTypeCheckResult>>>
检查指定用户的关注类型
inherited
checkFriend({required List<String> userIDList, required int checkType}) Future<V2TimValueCallback<List<V2TimFriendCheckResult>>>
检查指定用户的好友关系
override
cleanConversationUnreadMessageCount({required String conversationID, required int cleanTimestamp, required int cleanSequence}) Future<V2TimCallback>
override
clearC2CHistoryMessage({required String userID}) Future<V2TimCallback>
清空单聊本地及云端的消息(不删除会话)
override
clearGroupHistoryMessage({required String groupID}) Future<V2TimCallback>
清空群聊本地及云端的消息(不删除会话)
override
convertVoiceToText({required String msgID, required String language, String? webMessageInstance}) Future<V2TimValueCallback<String>>
override
createAtSignedGroupMessage({required String createdMsgID, required List<String> atUserList}) Future<V2TimValueCallback<V2TimMessage>>
inherited
createCommunity({required V2TimGroupInfo info, required List<V2TimCreateGroupMemberInfo> memberList}) Future<V2TimValueCallback<String>>
inherited
createConversationGroup({required String groupName, required List<String> conversationIDList}) Future<V2TimValueCallback<List<V2TimConversationOperationResult>>>
inherited
createCustomMessage({required String data, String? desc, String? extension}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
override
createFaceMessage({required int index, required String data}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
override
createFileMessage({required String filePath, required String fileName, dynamic inputElement}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
发送文件消息
override
createForwardMessage({required String msgID, String? webMessageInstance}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
override
createFriendGroup({required String groupName, List<String>? userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
新建好友分组
override
createGroup({String? groupID, required String groupType, required String groupName, String? notification, String? introduction, String? faceUrl, bool? isAllMuted, int? addOpt, List<V2TimGroupMember>? memberList, bool? isSupportTopic = false, int? approveOpt, bool? isEnablePermissionGroup, int? defaultPermissions}) Future<V2TimValueCallback<String>>
创建群组
override
createImageMessage({required String imagePath, String? imageName, Uint8List? fileContent, dynamic inputElement}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
override
createLocationMessage({required String desc, required double longitude, required double latitude}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
override
createMergerMessage({required List<String> msgIDList, required String title, required List<String> abstractList, required String compatibleText, List<String>? webMessageInstanceList}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
override
createPermissionGroupInCommunity({required V2TimPermissionGroupInfo info}) Future<V2TimValueCallback<String>>
inherited
createSoundMessage({required String soundPath, required int duration}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
inherited
createTargetedGroupMessage({required String id, required List<String> receiverList}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
创建定向群消息 如果您需要在群内给指定群成员列表发消息,可以创建一条定向群消息,定向群消息只有指定群成员才能收到。 原始消息对象不支持群 @ 消息。 社群(Community)和直播群(AVChatRoom)不支持发送定向群消息。 定向群消息默认不计入群会话的未读计数。
inherited
createTextAtMessage({required String text, required List<String> atUserList}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
override
createTextMessage({required String text}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
override
createTopicInCommunity({required String groupID, required V2TimTopicInfo topicInfo}) Future<V2TimValueCallback<String>>
override
createVideoMessage({required String videoFilePath, required String? type, required int? duration, required String? snapshotPath, dynamic inputElement}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
override
decreaseGroupCounter({required String groupID, required String key, required int value}) Future<V2TimValueCallback<Map<String, int>>>
inherited
deleteConversation({required String conversationID}) Future<V2TimCallback>
删除会话
override
deleteConversationGroup({required String groupName}) Future<V2TimCallback>
inherited
deleteConversationList({required List<String> conversationIDList, required bool clearMessage}) Future<V2TimValueCallback<List<V2TimConversationOperationResult>>>
override
deleteConversationsFromGroup({required String groupName, required List<String> conversationIDList}) Future<V2TimValueCallback<List<V2TimConversationOperationResult>>>
inherited
deleteFriendApplication({required int type, required String userID}) Future<V2TimCallback>
删除好友申请
override
deleteFriendGroup({required List<String> groupNameList}) Future<V2TimCallback>
删除好友分组
override
deleteFriendsFromFriendGroup({required String groupName, required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
从好友分组中删除好友
override
deleteFromBlackList({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
把用户从黑名单中删除
override
deleteFromFriendList({required List<String> userIDList, required int deleteType}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
删除好友
override
deleteGroupAttributes({required String groupID, required List<String> keys}) Future<V2TimCallback>
删除指定群属性,keys 传 null 则清空所有群属性。
override
deleteMessageExtensions({required String msgID, required List<String> keys}) Future<V2TimValueCallback<List<V2TimMessageExtensionResult>>>
inherited
deleteMessageFromLocalStorage({required String msgID}) Future<V2TimCallback>
删除本地消息
override
deleteMessages({required List<String> msgIDs, List? webMessageInstanceList}) Future<V2TimCallback>
删除本地及漫游消息
override
deletePermissionGroupFromCommunity({required String groupID, required List<String> permissionGroupIDList}) Future<V2TimValueCallback<List<V2TimPermissionGroupOperationResult>>>
inherited
deleteTopicFromCommunity({required String groupID, required List<String> topicIDList}) Future<V2TimValueCallback<List<V2TimTopicOperationResult>>>
override
deleteTopicPermissionFromPermissionGroup({required String groupID, required String permissionGroupID, required List<String> topicIDList}) Future<V2TimValueCallback<List<V2TimTopicOperationResult>>>
inherited
dismissGroup({required String groupID}) Future<V2TimCallback>
解散群组
override
doBackground({required int unreadCount}) Future<V2TimCallback>
inherited
doForeground() Future<V2TimCallback>
inherited
downloadMergerMessage({required String msgID}) Future<V2TimValueCallback<List<V2TimMessage>>>
override
downloadMessage({required String msgID, required int messageType, required int imageType, required bool isSnapshot}) Future<V2TimCallback>
override
emitPluginEvent(PluginEvent event) Future<void>
override
emitUIKitEvent(UIKitEvent event) Future<void>
override
emitUIKitListener({required Map<String, dynamic> data}) → void
override
findMessages({required List<String> messageIDList}) Future<V2TimValueCallback<List<V2TimMessage>>>
根据 messageID 查询指定会话中的本地消息
override
followUser({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFollowOperationResult>>>
关注用户
inherited
getAllReceiveMessageOpt() Future<V2TimValueCallback<V2TimReceiveMessageOptInfo>>
inherited
getAllUserListOfMessageReaction({required String msgID, required String reactionID, required int nextSeq, required int count, String? webMessageInstance}) Future<V2TimValueCallback<V2TimMessageReactionUserResult>>
override
getBlackList() Future<V2TimValueCallback<List<V2TimFriendInfo>>>
获取黑名单列表
override
getC2CHistoryMessageList({required String userID, required int count, String? lastMsgID}) Future<V2TimValueCallback<List<V2TimMessage>>>
获取单聊历史消息
override
getC2CReceiveMessageOpt({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimReceiveMessageOptInfo>>>
查询针对某个用户的 C2C 消息接收选项
override
getCommunityMemberListInPermissionGroup({required String groupID, required String permissionGroupID, required String nextCursor}) Future<V2TimValueCallback<V2TimPermissionGroupMemberInfoResult>>
inherited
getConversation({required String conversationID}) Future<V2TimValueCallback<V2TimConversation>>
获取指定会话
override
getConversationGroupList() Future<V2TimValueCallback<List<String>>>
inherited
getConversationList({required String nextSeq, required int count}) Future<V2TimValueCallback<V2TimConversationResult>>
会话模块********/
override
getConversationListByConversaionIds({required List<String> conversationIDList}) Future<V2TimValueCallback<List<V2TimConversation>>>
通过会话ID获取指定会话列表
override
getConversationListByFilter({required V2TimConversationFilter filter, required int nextSeq, required int count}) Future<V2TimValueCallback<V2TimConversationResult>>
inherited
getConversationListWithoutFormat({required String nextSeq, required int count}) Future<LinkedHashMap>
inherited
getFriendApplicationList() Future<V2TimValueCallback<V2TimFriendApplicationResult>>
获取好友申请列表
override
getFriendGroups({List<String>? groupNameList}) Future<V2TimValueCallback<List<V2TimFriendGroup>>>
获取分组信息
override
getFriendList() Future<V2TimValueCallback<List<V2TimFriendInfo>>>
好友关系模块********/
override
getFriendsInfo({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendInfoResult>>>
获取指定好友资料
override
getGroupApplicationList() Future<V2TimValueCallback<V2TimGroupApplicationResult>>
获取加群的申请列表
override
getGroupAttributes({required String groupID, List<String>? keys}) Future<V2TimValueCallback<Map<String, String>>>
获取指定群属性,keys 传 null 则获取所有群属性。
override
getGroupCounters({required String groupID, required List<String> keys}) Future<V2TimValueCallback<Map<String, int>>>
inherited
getGroupHistoryMessageList({required String groupID, required int count, String? lastMsgID}) Future<V2TimValueCallback<List<V2TimMessage>>>
获取群组历史消息
override
getGroupMemberList({required String groupID, required int filter, required String nextSeq, int count = 15, int offset = 0}) Future<V2TimValueCallback<V2TimGroupMemberInfoResult>>
获取群成员列表
override
getGroupMembersInfo({required String groupID, required List<String> memberList}) Future<V2TimValueCallback<List<V2TimGroupMemberFullInfo>>>
获取指定的群成员资料
override
getGroupMessageReadMemberList({required String messageID, required GetGroupMessageReadMemberListFilter filter, int nextSeq = 0, int count = 100}) Future<V2TimValueCallback<V2TimGroupMessageReadMemberList>>
override
getGroupOnlineMemberCount({required String groupID}) Future<V2TimValueCallback<int>>
获取指定群属性,keys 传 null 则获取所有群属性。
override
getGroupsInfo({required List<String> groupIDList}) Future<V2TimValueCallback<List<V2TimGroupInfoResult>>>
拉取群资料
override
getHistoryMessageList({int getType = HistoryMessageGetType.V2TIM_GET_LOCAL_OLDER_MSG, String? userID, String? groupID, int lastMsgSeq = -1, required int count, List<int>? messageTypeList, String? lastMsgID, List<int>? messageSeqList, int? timeBegin, int? timePeriod}) Future<V2TimValueCallback<List<V2TimMessage>>>
获取历史消息高级接口
override
getHistoryMessageListV2({int getType = HistoryMessageGetType.V2TIM_GET_LOCAL_OLDER_MSG, String? userID, String? groupID, int lastMsgSeq = -1, required int count, List<int>? messageTypeList, String? lastMsgID, List<int>? messageSeqList, int? timeBegin, int? timePeriod}) Future<V2TimValueCallback<V2TimMessageListResult>>
override
getHistoryMessageListWithoutFormat({int getType = HistoryMessageGetType.V2TIM_GET_LOCAL_OLDER_MSG, String? userID, String? groupID, int lastMsgSeq = -1, required int count, String? lastMsgID, List<int>? messageSeqList, int? timeBegin, int? timePeriod}) Future<LinkedHashMap>
获取历史消息高级接口(没有处理Native返回数据)
override
getJoinedCommunityList() Future<V2TimValueCallback<List<V2TimGroupInfo>>>
override
getJoinedGroupList() Future<V2TimValueCallback<List<V2TimGroupInfo>>>
群组模块********/
override
getJoinedPermissionGroupListInCommunity({required String groupID}) Future<V2TimValueCallback<List<V2TimPermissionGroupInfoResult>>>
inherited
getLoginStatus() Future<V2TimValueCallback<int>>
获取登录状态
override
getLoginUser() Future<V2TimValueCallback<String>>
获取登录用户
override
getMessageExtensions({required String msgID}) Future<V2TimValueCallback<List<V2TimMessageExtension>>>
inherited
getMessageOnlineUrl({required String msgID}) Future<V2TimValueCallback<V2TimMessageOnlineUrl>>
下载多媒体消息到应用目录
override
getMessageReactions({required List<String> msgIDList, required int maxUserCountPerReaction, List<String>? webMessageInstanceList}) Future<V2TimValueCallback<List<V2TimMessageReactionResult>>>
override
getMessageReadReceipts({required List<String> messageIDList}) Future<V2TimValueCallback<List<V2TimMessageReceipt>>>
override
getMutualFollowersList({required String nextCursor}) Future<V2TimValueCallback<V2TimUserInfoResult>>
获取我的互关列表
inherited
getMyFollowersList({required String nextCursor}) Future<V2TimValueCallback<V2TimUserInfoResult>>
inherited
getMyFollowingList({required String nextCursor}) Future<V2TimValueCallback<V2TimUserInfoResult>>
获取我的关注列表
inherited
getOfficialAccountsInfo({required List<String> officialAccountIDList}) Future<V2TimValueCallback<List<V2TimOfficialAccountInfoResult>>>
获取公众号列表
inherited
getPermissionGroupListInCommunity({required String groupID, required List<String> permissionGroupIDList}) Future<V2TimValueCallback<List<V2TimPermissionGroupInfoResult>>>
inherited
getPinnedGroupMessageList({required String groupID}) Future<V2TimValueCallback<List<V2TimMessage>>>
inherited
getPlatformVersion() Future<String?>
Returns a String containing the version of the platform.
override
getServerTime() Future<V2TimValueCallback<int>>
获取服务器当前时间
override
getSignalingInfo({required String msgID}) Future<V2TimValueCallback<V2TimSignalingInfo>>
override
getTopicInfoList({required String groupID, required List<String> topicIDList}) Future<V2TimValueCallback<List<V2TimTopicInfoResult>>>
override
getTopicPermissionInPermissionGroup({required String groupID, required String permissionGroupID, required List<String> topicIDList}) Future<V2TimValueCallback<List<V2TimTopicPermissionResult>>>
inherited
getTotalUnreadMessageCount() Future<V2TimValueCallback<int>>
获取会话未读总数
override
getUnreadMessageCountByFilter({required V2TimConversationFilter filter}) Future<V2TimValueCallback<int>>
inherited
getUserFollowInfo({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFollowInfo>>>
获取指定用户的 关注/粉丝/互关 数量信息
inherited
getUsersInfo({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimUserFullInfo>>>
获取用户资料
override
getUserStatus({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimUserStatus>>>
override
getVersion() Future<V2TimValueCallback<String>>
获取版本号
override
increaseGroupCounter({required String groupID, required String key, required int value}) Future<V2TimValueCallback<Map<String, int>>>
inherited
initGroupAttributes({required String groupID, required Map<String, String> attributes}) Future<V2TimCallback>
初始化群属性,会清空原有的群属性列表
override
initSDK({required int sdkAppID, required int loglevel, String? listenerUuid, required int uiPlatform, bool? showImLog, List<V2TimPlugins>? plugins, V2TimSDKListener? listener}) Future<V2TimValueCallback<bool>>
初始化SDK
override
insertC2CMessageToLocalStorage({required String data, required String userID, required String sender, bool? isExcludedFromLastMessage = false}) Future<V2TimValueCallback<V2TimMessage>>
向C2C消息列表中添加一条消息
override
insertC2CMessageToLocalStorageV2({required String userID, required String senderID, required String createdMsgID}) Future<V2TimValueCallback<V2TimMessage>>
inherited
insertGroupMessageToLocalStorage({required String data, required String groupID, required String sender, bool? isExcludedFromLastMessage = false}) Future<V2TimValueCallback<V2TimMessage>>
向群组消息列表中添加一条消息
override
insertGroupMessageToLocalStorageV2({required String groupID, required String senderID, required String createdMsgID}) Future<V2TimValueCallback<V2TimMessage>>
inherited
invite({required String invitee, required String data, int timeout = 30, bool onlineUserOnly = false, OfflinePushInfo? offlinePushInfo}) Future<V2TimValueCallback<String>>
override
inviteInGroup({required String groupID, required List<String> inviteeList, required String data, int timeout = 30, bool onlineUserOnly = false}) Future<V2TimValueCallback<String>>
override
inviteUserToGroup({required String groupID, required List<String> userList}) Future<V2TimValueCallback<List<V2TimGroupMemberOperationResult>>>
邀请他人入群
override
joinGroup({required String groupID, required String message, String? groupType}) Future<V2TimCallback>
加入群组
override
kickGroupMember({required String groupID, required List<String> memberList, int? duration, String? reason}) Future<V2TimCallback>
踢人
override
login({required String userID, required String userSig}) Future<V2TimCallback>
登录
override
logout() Future<V2TimCallback>
登出
override
markAllMessageAsRead() Future<V2TimCallback>
inherited
markC2CMessageAsRead({required String userID}) Future<V2TimCallback>
设置单聊消息已读
override
markConversation({required int markType, required bool enableMark, required List<String> conversationIDList}) Future<V2TimValueCallback<List<V2TimConversationOperationResult>>>
inherited
markGroupMemberList({required String groupID, required List<String> memberIDList, required int markType, required bool enableMark}) Future<V2TimCallback>
inherited
markGroupMessageAsRead({required String groupID}) Future<V2TimCallback>
设置群组消息已读
override
modifyMessage({required V2TimMessage message}) Future<V2TimValueCallback<V2TimMessageChangeInfo>>
override
modifyPermissionGroupInfoInCommunity({required V2TimPermissionGroupInfo info}) Future<V2TimCallback>
inherited
modifyTopicPermissionInPermissionGroup({required String groupID, required String permissionGroupID, required Map<String, int> topicPermissionMap}) Future<V2TimValueCallback<List<V2TimTopicOperationResult>>>
inherited
muteGroupMember({required String groupID, required String userID, required int seconds}) Future<V2TimCallback>
禁言(只有管理员或群主能够调用)
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pinConversation({required String conversationID, required bool isPinned}) Future<V2TimCallback>
会话置顶
override
pinGroupMessage({required String msgID, required String groupID, required bool isPinned}) Future<V2TimCallback>
inherited
quitGroup({required String groupID}) Future<V2TimCallback>
退出群组
override
refuseFriendApplication({required int type, required String userID}) Future<V2TimValueCallback<V2TimFriendOperationResult>>
拒绝好友申请
override
refuseGroupApplication({required String groupID, String? reason, required String fromUser, required String toUser, required int addTime, required int type, String? webMessageInstance}) Future<V2TimCallback>
拒绝某一条加群申请
override
reject({required String inviteID, String? data}) Future<V2TimCallback>
override
removeAdvancedMsgListener({String? uuid, V2TimAdvancedMsgListener? listener}) Future<void>
移除高级消息监听器
override
removeCommunityListener({String? listenerID}) Future<bool>
inherited
removeCommunityMembersFromPermissionGroup({required String groupID, required String permissionGroupID, required List<String> memberList}) Future<V2TimValueCallback<List<V2TimPermissionGroupMemberOperationResult>>>
inherited
removeConversationListener({V2TimConversationListener? listener}) Future<void>
override
removeFriendListener({V2TimFriendshipListener? listener}) Future<void>
override
removeGroupListener({V2TimGroupListener? listener}) Future<void>
override
removeMessageReaction({required String msgID, required String reactionID}) Future<V2TimCallback>
override
removeSignalingListener({V2TimSignalingListener? listener}) Future<void>
override
removeSimpleMsgListener({V2TimSimpleMsgListener? listener, String? uuid}) Future<void>
移除基本消息(文本消息和自定义消息)的事件监听器
override
removeUIKitListener({String? uuid}) → void
override
renameConversationGroup({required String oldName, required String newName}) Future<V2TimCallback>
inherited
renameFriendGroup({required String oldName, required String newName}) Future<V2TimCallback>
修改好友分组的名称
override
reSendMessage({required String msgID, bool onlineUserOnly = false, Object? webMessageInstatnce}) Future<V2TimValueCallback<V2TimMessage>>
override
revokeMessage({required String msgID, Object? webMessageInstatnce}) Future<V2TimCallback>
撤回消息
override
searchCloudMessages({required V2TimMessageSearchParam searchParam}) Future<V2TimValueCallback<V2TimMessageSearchResult>>
override
searchFriends({required V2TimFriendSearchParam searchParam}) Future<V2TimValueCallback<List<V2TimFriendInfoResult>>>
搜索好友
override
searchGroupByID({required String groupID}) Future<V2TimValueCallback<V2TimGroupInfo>>
通过 groupID 搜索群组 注意: 好友工作群不能被搜索 仅 web 支持该搜索方式
override
searchGroupMembers({required V2TimGroupMemberSearchParam param}) Future<V2TimValueCallback<V2GroupMemberInfoSearchResult>>
搜索群成员
override
searchGroups({required V2TimGroupSearchParam searchParam}) Future<V2TimValueCallback<List<V2TimGroupInfo>>>
搜索群资料
override
searchLocalMessages({required V2TimMessageSearchParam searchParam}) Future<V2TimValueCallback<V2TimMessageSearchResult>>
搜索本地消息
override
sendC2CCustomMessage({required String customData, required String userID}) Future<V2TimValueCallback<V2TimMessage>>
发送单聊自定义(信令)消息(最大支持 8KB)
override
sendC2CTextMessage({required String text, required String userID}) Future<V2TimValueCallback<V2TimMessage>>
发送单聊普通文本消息(最大支持 8KB)
override
sendCustomMessage({required String data, required String receiver, required String groupID, int priority = 0, String desc = "", String extension = "", bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, Map<String, dynamic>? offlinePushInfo}) Future<V2TimValueCallback<V2TimMessage>>
发送自定义消息
override
sendFaceMessage({required int index, required String data, required String receiver, required String groupID, int priority = 0, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, Map<String, dynamic>? offlinePushInfo}) Future<V2TimValueCallback<V2TimMessage>>
override
sendFileMessage({required String filePath, required String fileName, required String receiver, required String groupID, int priority = 0, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, Map<String, dynamic>? offlinePushInfo, Uint8List? fileContent}) Future<V2TimValueCallback<V2TimMessage>>
发送文件 web 端 fileName、fileContent 为必传字段
override
sendForwardMessage({required String msgID, required String receiver, required String groupID, int priority = 0, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, Map<String, dynamic>? offlinePushInfo, String? webMessageInstance}) Future<V2TimValueCallback<V2TimMessage>>
override
sendGroupCustomMessage({required String customData, required String groupID, int priority = 0}) Future<V2TimValueCallback<V2TimMessage>>
发送群聊自定义(信令)消息(最大支持 8KB)
override
sendGroupTextMessage({required String text, required String groupID, int priority = 0}) Future<V2TimValueCallback<V2TimMessage>>
发送群聊普通文本消息(最大支持 8KB)
override
sendImageMessage({required String imagePath, required String receiver, required String groupID, int priority = 0, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, Map<String, dynamic>? offlinePushInfo, String? fileName, Uint8List? fileContent}) Future<V2TimValueCallback<V2TimMessage>>
发送图片消息
override
sendLocationMessage({required String desc, required double longitude, required double latitude, required String receiver, required String groupID, int priority = 0, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, Map<String, dynamic>? offlinePushInfo}) Future<V2TimValueCallback<V2TimMessage>>
发送地理位置消息
override
sendMergerMessage({required List<String> msgIDList, required String title, required List<String> abstractList, required String compatibleText, required String receiver, required String groupID, int priority = 0, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, Map<String, dynamic>? offlinePushInfo, List<String>? webMessageInstanceList}) Future<V2TimValueCallback<V2TimMessage>>
合并消息
override
sendMessage({required String id, required String receiver, required String groupID, int priority = 0, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, bool isExcludedFromLastMessage = false, bool? isSupportMessageExtension = false, bool? isExcludedFromContentModeration = false, bool needReadReceipt = false, Map<String, dynamic>? offlinePushInfo, String? cloudCustomData, String? localCustomData, bool? isDisableCloudMessagePreHook = false, bool? isDisableCloudMessagePostHook = false}) Future<V2TimValueCallback<V2TimMessage>>
3.6.0 新接口统一发送消息实例
override
sendMessageReadReceipts({required List<String> messageIDList}) Future<V2TimCallback>
override
sendSoundMessage({required String soundPath, required String receiver, required String groupID, required int duration, int priority = 0, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, Map<String, dynamic>? offlinePushInfo}) Future<V2TimValueCallback<V2TimMessage>>
发送语音消息
override
sendTextAtMessage({required String text, required List<String> atUserList, required String receiver, required String groupID, int priority = 0, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, Map<String, dynamic>? offlinePushInfo}) Future<V2TimValueCallback<V2TimMessage>>
override
sendTextMessage({required String text, required String receiver, required String groupID, String? id, int priority = 0, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, Map<String, dynamic>? offlinePushInfo}) Future<V2TimValueCallback<V2TimMessage>>
发送高级文本消息
override
sendVideoMessage({required String videoFilePath, required String receiver, required String type, required String snapshotPath, required int duration, required String groupID, int priority = 0, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, Map<String, dynamic>? offlinePushInfo, String? fileName, Uint8List? fileContent}) Future<V2TimValueCallback<V2TimMessage>>
发送视频消息
override
setAllReceiveMessageOpt({required int opt, required int startHour, required int startMinute, required int startSecond, required int duration}) Future<V2TimCallback>
inherited
setAllReceiveMessageOptWithTimestamp({required int opt, required int startTimeStamp, required int duration}) Future<V2TimCallback>
inherited
setAPNSListener() Future
设置apns监听
inherited
setAvChatRoomCanFindMessage({required List<String> avchatroomIDs, int eachGroupMessageNums = 20}) Future<V2TimValueCallback<List<String>>>
inherited
setC2CReceiveMessageOpt({required List<String> userIDList, required int opt}) Future<V2TimCallback>
override
setCloudCustomData({required String data, required String msgID}) Future<V2TimCallback>
设置云端自定义数据(云端保存,会发送到对端,程序卸载重装后还能拉取到)
override
setConversationCustomData({required String customData, required List<String> conversationIDList}) Future<V2TimValueCallback<List<V2TimConversationOperationResult>>>
inherited
setConversationDraft({required String conversationID, String? draftText}) Future<V2TimCallback>
设置会话草稿
override
setConversationListener({required V2TimConversationListener listener, String? listenerUuid}) Future<void>
override
setFriendApplicationRead() Future<V2TimCallback>
设置好友申请已读
override
setFriendInfo({required String userID, String? friendRemark, Map<String, String>? friendCustomInfo}) Future<V2TimCallback>
设置指定好友资料
override
setFriendListener({required V2TimFriendshipListener listener, String? listenerUuid}) Future<void>
设置关系链监听器
override
setGroupApplicationRead() Future<V2TimCallback>
标记申请列表为已读
override
setGroupAttributes({required String groupID, required Map<String, String> attributes}) Future<V2TimCallback>
设置群属性。已有该群属性则更新其 value 值,没有该群属性则添加该属性。
override
setGroupCounters({required String groupID, required Map<String, int> counters}) Future<V2TimValueCallback<Map<String, int>>>
inherited
setGroupInfo({required V2TimGroupInfo info}) Future<V2TimCallback>
override
setGroupListener({required V2TimGroupListener listener, String? listenerUuid}) Future<void>
设置群组监听器
override
setGroupMemberInfo({required String groupID, required String userID, String? nameCard, Map<String, String>? customInfo}) Future<V2TimCallback>
修改指定的群成员资料
override
setGroupMemberRole({required String groupID, required String userID, required int role}) Future<V2TimCallback>
切换群成员的角色。
override
setGroupReceiveMessageOpt({required String groupID, required int opt}) Future<V2TimCallback>
修改群消息接收选项
override
setLocalCustomData({required String msgID, required String localCustomData}) Future<V2TimCallback>
设置消息自定义数据(本地保存,不会发送到对端,程序卸载重装后失效)
override
setLocalCustomInt({required String msgID, required int localCustomInt}) Future<V2TimCallback>
设置消息自定义数据,可以用来标记语音、视频消息是否已经播放(本地保存,不会发送到对端,程序卸载重装后失效)
override
setMessageExtensions({required String msgID, required List<V2TimMessageExtension> extensions}) Future<V2TimValueCallback<List<V2TimMessageExtensionResult>>>
inherited
setOfflinePushConfig({required double businessID, required String token, bool isTPNSToken = false, bool isVoip = false}) Future<V2TimCallback>
inherited
setSelfInfo({required V2TimUserFullInfo userFullInfo}) Future<V2TimCallback>
修改个人资料
override
setSelfStatus({required String status}) Future<V2TimCallback>
inherited
setTopicInfo({required String groupID, required V2TimTopicInfo topicInfo}) Future<V2TimCallback>
override
subscribeOfficialAccount({required String officialAccountID}) Future<V2TimCallback>
订阅公众号
inherited
subscribeUnreadMessageCountByFilter({required V2TimConversationFilter filter}) Future<V2TimCallback>
inherited
subscribeUserInfo({required List<String> userIDList}) Future<V2TimCallback>
inherited
subscribeUserStatus({required List<String> userIDList}) Future<V2TimCallback>
inherited
toString() String
A string representation of this object.
inherited
transferGroupOwner({required String groupID, required String userID}) Future<V2TimCallback>
转让群主
override
translateText({required List<String> texts, required String targetLanguage, String? sourceLanguage}) Future<V2TimValueCallback<Map<String, String>>>
override
uikitTrace({required String trace}) Future<void>
override
unfollowUser({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFollowOperationResult>>>
取消关注用户
inherited
unInitSDK() Future<V2TimCallback>
反初始化 SDK
override
unsubscribeOfficialAccount({required String officialAccountID}) Future<V2TimCallback>
取消订阅公众号
inherited
unsubscribeUnreadMessageCountByFilter({required V2TimConversationFilter filter}) Future<V2TimCallback>
inherited
unsubscribeUserInfo({required List<String> userIDList}) Future<V2TimCallback>
inherited
unsubscribeUserStatus({required List<String> userIDList}) Future<V2TimCallback>
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

registerWith(Registrar registrar) → void