MethodChannelIm class

Inheritance

Constructors

MethodChannelIm()

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, String? listenerUuid}) Future<void>
添加高级消息的事件监听器
override
addConversationListener({required V2TimConversationListener listener, String? listenerUuid}) Future<void>
override
addConversationsToGroup({required String groupName, required List<String> conversationIDList}) Future<V2TimValueCallback<List<V2TimConversationOperationResult>>>
override
addFriend({required String userID, String? remark, String? friendGroup, String? addWording, String? addSource, required int addType}) Future<V2TimValueCallback<V2TimFriendOperationResult>>
override
addFriendListener({required V2TimFriendshipListener listener, String? listenerUuid}) Future<void>
override
addFriendsToFriendGroup({required String groupName, required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
添加好友到一个好友分组
override
addGroupListener({required V2TimGroupListener listener, String? listenerUuid}) Future<void>
override
addInvitedSignaling({required V2TimSignalingInfo info}) Future<V2TimCallback>
override
addSignalingListener({String? listenerUuid, required V2TimSignalingListener listener}) Future<void>
override
addSimpleMsgListener({required V2TimSimpleMsgListener listener, String? listenerUuid}) Future<void>
设置基本消息(文本消息和自定义消息)的事件监听器
override
addToBlackList({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
添加用户到黑名单
override
appendMessage({required String createMessageBaseId, required String createMessageAppendId}) Future<V2TimValueCallback<V2TimMessage>>
override
buildFriendManagerParam(Map param) Map
buildGroupManagerParam(Map param) Map
buildMessageMangerParam(Map param) Map
buildSignalingManagerParam(Map param) Map
buildTimManagerParam(Map param) Map
callExperimentalAPI({required String api, Object? param}) Future<V2TimValueCallback<Object>>
实验性 API 接口
override
cancel({required String inviteID, String? data}) Future<V2TimCallback>
override
checkAbility() Future<V2TimValueCallback<int>>
能力位检测
override
checkFriend({required List<String> userIDList, required int checkType}) Future<V2TimValueCallback<List<V2TimFriendCheckResult>>>
检查指定用户的好友关系
override
clearC2CHistoryMessage({required String userID}) Future<V2TimCallback>
清空单聊本地及云端的消息(不删除会话)
override
clearGroupHistoryMessage({required String groupID}) Future<V2TimCallback>
清空群聊本地及云端的消息(不删除会话)
override
createConversationGroup({required String groupName, required List<String> conversationIDList}) Future<V2TimValueCallback<List<V2TimConversationOperationResult>>>
override
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}) Future<V2TimValueCallback<String>>
创建群组
override
createImageMessage({required String imagePath, dynamic inputElement, String? imageName}) 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
createSoundMessage({required String soundPath, required int duration}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
override
createTargetedGroupMessage({required String id, required List<String> receiverList}) Future<V2TimValueCallback<V2TimMsgCreateInfoResult>>
创建定向群消息 如果您需要在群内给指定群成员列表发消息,可以创建一条定向群消息,定向群消息只有指定群成员才能收到。 原始消息对象不支持群 @ 消息。 社群(Community)和直播群(AVChatRoom)不支持发送定向群消息。 定向群消息默认不计入群会话的未读计数。
override
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>>>
override
deleteConversation({required String conversationID}) Future<V2TimCallback>
删除会话
override
deleteConversationGroup({required String groupName}) Future<V2TimCallback>
override
deleteConversationsFromGroup({required String groupName, required List<String> conversationIDList}) Future<V2TimValueCallback<List<V2TimConversationOperationResult>>>
override
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>>>
override
deleteMessageFromLocalStorage({required String msgID}) Future<V2TimCallback>
删除本地消息
override
deleteMessages({required List<String> msgIDs, List? webMessageInstanceList}) Future<V2TimCallback>
删除本地及漫游消息
override
deleteTopicFromCommunity({required String groupID, required List<String> topicIDList}) Future<V2TimValueCallback<List<V2TimTopicOperationResult>>>
override
dismissGroup({required String groupID}) Future<V2TimCallback>
解散群组
override
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
findMessages({required List<String> messageIDList}) Future<V2TimValueCallback<List<V2TimMessage>>>
根据 messageID 查询指定会话中的本地消息
override
formatJson(dynamic jsonSrc) → dynamic
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
getConversation({required String conversationID}) Future<V2TimValueCallback<V2TimConversation>>
获取指定会话
override
getConversationGroupList() Future<V2TimValueCallback<List<String>>>
override
getConversationList({required String nextSeq, required int count}) Future<V2TimValueCallback<V2TimConversationResult>>
***********************-会话模块-*******************************/
override
getConversationListByConversaionIds({required List<String> conversationIDList}) Future<V2TimValueCallback<List<V2TimConversation>>>
通过会话ID获取指定会话列表
override
getConversationListByFilter({required V2TimConversationListFilter filter}) Future<V2TimValueCallback<V2TimConversationResult>>
override
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>>>
override
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, String? lastMsgID, List<int>? messageTypeList}) Future<V2TimValueCallback<List<V2TimMessage>>>
获取历史消息高级接口
override
getHistoryMessageListV2({int getType = HistoryMessageGetType.V2TIM_GET_LOCAL_OLDER_MSG, String? userID, String? groupID, int lastMsgSeq = -1, required int count, String? lastMsgID, List<int>? messageTypeList}) 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}) Future<LinkedHashMap>
获取历史消息高级接口(没有处理Native返回数据)
override
getJoinedCommunityList() Future<V2TimValueCallback<List<V2TimGroupInfo>>>
override
getJoinedGroupList() Future<V2TimValueCallback<List<V2TimGroupInfo>>>
获取当前用户已经加入的群列表
override
getLoginStatus() Future<V2TimValueCallback<int>>
获取登录状态
override
getLoginUser() Future<V2TimValueCallback<String>>
获取登录用户
override
getMessageExtensions({required String msgID}) Future<V2TimValueCallback<List<V2TimMessageExtension>>>
override
getMessageOnlineUrl({required String msgID}) Future<V2TimValueCallback<V2TimMessageOnlineUrl>>
下载多媒体消息到应用目录
override
getMessageReadReceipts({required List<String> messageIDList}) Future<V2TimValueCallback<List<V2TimMessageReceipt>>>
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
getTotalUnreadMessageCount() Future<V2TimValueCallback<int>>
获取会话未读总数
override
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>>>
override
initGroupAttributes({required String groupID, required Map<String, String> attributes}) Future<V2TimCallback>
初始化群属性,会清空原有的群属性列表
override
initSDK({required int sdkAppID, required int loglevel, String? listenerUuid, V2TimSDKListener? listener, required int uiPlatform, bool? showImLog, List<V2TimPlugins>? plugins}) Future<V2TimValueCallback<bool>>
初始化SDK
override
insertC2CMessageToLocalStorage({required String data, required String userID, required String sender}) Future<V2TimValueCallback<V2TimMessage>>
向C2C消息列表中添加一条消息
override
insertGroupMessageToLocalStorage({required String data, required String groupID, required String sender}) Future<V2TimValueCallback<V2TimMessage>>
向群组消息列表中添加一条消息
override
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, String? reason}) Future<V2TimCallback>
踢人
override
login({required String userID, required String userSig}) Future<V2TimCallback>
登录
override
logout() Future<V2TimCallback>
登出
override
markAllMessageAsRead() Future<V2TimCallback>
override
markC2CMessageAsRead({required String userID}) Future<V2TimCallback>
设置单聊消息已读
override
markConversation({required int markType, required bool enableMark, required List<String> conversationIDList}) Future<V2TimValueCallback<List<V2TimConversationOperationResult>>>
override
markGroupMessageAsRead({required String groupID}) Future<V2TimCallback>
设置群组消息已读
override
modifyMessage({required V2TimMessage message}) Future<V2TimValueCallback<V2TimMessageChangeInfo>>
override
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
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? listenerUuid, V2TimAdvancedMsgListener? listener}) Future<void>
移除高级消息监听器
override
removeConversationListener({String? listenerUuid, V2TimConversationListener? listener}) Future<void>
override
removeFriendListener({String? listenerUuid, V2TimFriendshipListener? listener}) Future<void>
override
removeGroupListener({String? listenerUuid, V2TimGroupListener? listener}) Future<void>
override
removeSignalingListener({required String listenerUuid, V2TimSignalingListener? listener}) Future<void>
override
removeSimpleMsgListener({String? listenerUuid}) Future<void>
移除基本消息(文本消息和自定义消息)的事件监听器
override
renameConversationGroup({required String oldName, required String newName}) Future<V2TimCallback>
override
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
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 needReadReceipt = false, Map<String, dynamic>? offlinePushInfo, String? cloudCustomData, String? localCustomData}) Future<V2TimValueCallback<V2TimMessage>>
发送消息
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, 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
setAPNSListener() Future
设置apns监听
override
setAvChatRoomCanFindMessage({required List<String> avchatroomIDs, int eachGroupMessageNums = 20}) Future<V2TimValueCallback<List<String>>>
override
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>>>
override
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>>>
override
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>>>
override
setSelfInfo({required V2TimUserFullInfo userFullInfo}) Future<V2TimCallback>
修改个人资料
override
setSelfStatus({required String status}) Future<V2TimCallback>
override
setTopicInfo({required String groupID, required V2TimTopicInfo topicInfo}) Future<V2TimCallback>
override
subscribeUserStatus({required List<String> userIDList}) Future<V2TimCallback>
override
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
unInitSDK() Future<V2TimCallback>
反初始化 SDK
override
unsubscribeUserStatus({required List<String> userIDList}) Future<V2TimCallback>
override

Operators

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