V2TIMMessageManager class Manager
提供高级消息处理相关接口
addAdvancedMsgListener 添加高级消息的事件监听器
removeAdvancedMsgListener 移除高级消息监听器
createTextMessage 创建文本消息
createTextAtMessage 创建文本消息,并且可以附带 @ 提醒功能
createCustomMessage 创建自定义消息
createImageMessage 创建图片消息(图片最大支持 28 MB)
createSoundMessage 创建语音消息(语音最大支持 28 MB)
createVideoMessage 创建视频消息(视频最大支持 100 MB)
createVideoMessage 创建文件消息(文件最大支持 100 MB)
createLocationMessage 创建地理位置消息
createFaceMessage 创建表情消息
sendMessage 发送高级消息(高级版本:可以指定优先级,推送信息等特性)
getC2CHistoryMessageList 获取单聊历史消息
getGroupHistoryMessageList 获取群组历史消息
revokeMessage 撤回消息
markC2CMessageAsRead 设置单聊消息已读
markGroupMessageAsRead 设置群组消息已读
deleteMessageFromLocalStorage 删除本地消息
deleteMessages 删除本地及漫游消息
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
addAdvancedMsgListener(
Function listener) → void - 添加高级消息的事件监听器
-
createCustomMessage(
{String data}) → Future< String> - 创建自定义消息
-
createFaceMessage(
{int index, String data}) → Future< String> - 创建表情消息 [...]
-
createFileMessage(
{String filePath, String fileName}) → Future< String> - 创建文件消息(文件最大支持 100 MB)
-
createImageMessage(
{String imagePath}) → Future< String> - 创建图片消息(图片最大支持 28 MB)
-
createLocationMessage(
{String desc, double longitude, double latitude}) → Future< String> - 创建地理位置消息
-
createSoundMessage(
{String soundPath, int duration}) → Future< String> - 创建语音消息(语音最大支持 28 MB) [...]
-
createTextAtMessage(
{String text, List< String> userList}) → Future<String> - 创建文本消息,并且可以附带 @ 提醒功能 [...]
-
createTextMessage(
{String text}) → Future< String> - 创建文本消息
-
createVideoMessage(
{String videoFilePath, String type, int duration, String snapshotPath}) → Future< String> - 创建视频消息(视频最大支持 100 MB) [...]
-
deleteMessageFromLocalStorage(
{String msgID}) → Future< V2TimCallback> - 删除本地消息 [...]
-
deleteMessages(
{List< String> msgIDs}) → Future<V2TimCallback> - 删除本地及漫游消息 [...]
-
getC2CHistoryMessageList(
{String userID, int count, String lastMsgID}) → Future< V2TimValueCallback< List< >V2TimMessage> > - 获取单聊历史消息 [...]
-
getGroupHistoryMessageList(
{String groupID, int count, String lastMsgID}) → Future< V2TimValueCallback< List< >V2TimMessage> > - 获取群组历史消息 [...]
-
insertGroupMessageToLocalStorage(
{String msgID, String groupID, String sender}) → Future< V2TimValueCallback< V2TimMessage> > -
markC2CMessageAsRead(
{String userID}) → Future< V2TimCallback> - 设置单聊消息已读
-
markGroupMessageAsRead(
{String groupID}) → Future< V2TimCallback> - 设置群组消息已读
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
removeAdvancedMsgListener(
Function listener) → void - 移除高级消息监听器
-
revokeMessage(
{String msgID}) → Future< V2TimCallback> - 撤回消息 [...]
-
sendMessage(
{String msgID, String receiver, String groupID, int priority, bool onlineUserOnly, Map offlinePushInfo}) → Future< V2TimValueCallback< V2TimMessage> > - 发送高级消息(高级版本:可以指定优先级,推送信息等特性) [...]
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited