MessageService class abstract

Implementers

Constructors

MessageService()

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

addAdvancedMsgListener({required V2TimAdvancedMsgListener listener}) Future
addSimpleMsgListener({required V2TimSimpleMsgListener listener}) Future
clearC2CHistoryMessage({required String userID}) Future<V2TimCallback>
clearGroupHistoryMessage({required String groupID}) Future<V2TimCallback>
createCustomMessage({required String data}) Future<V2TimMsgCreateInfoResult?>
createFaceMessage({required int index, required String data}) Future<V2TimMsgCreateInfoResult?>
createFileMessage({String? filePath, required String fileName, dynamic inputElement}) Future<V2TimMsgCreateInfoResult?>
createForwardMessage({required String msgID}) Future<V2TimMsgCreateInfoResult?>
createImageMessage({String? imageName, String? imagePath, dynamic inputElement}) Future<V2TimMsgCreateInfoResult?>
createLocationMessage({required String desc, required double longitude, required double latitude}) Future<V2TimMsgCreateInfoResult?>
createMergerMessage({required List<String> msgIDList, required String title, required List<String> abstractList, required String compatibleText}) Future<V2TimMsgCreateInfoResult?>
createSoundMessage({required String soundPath, required int duration}) Future<V2TimMsgCreateInfoResult?>
createTextAtMessage({required String text, required List<String> atUserList}) Future<V2TimMsgCreateInfoResult?>
createTextMessage({required String text}) Future<V2TimMsgCreateInfoResult?>
createVideoMessage({String? videoPath = "", String? type = "", int? duration = 0, String? snapshotPath = "", dynamic inputElement}) Future<V2TimMsgCreateInfoResult?>
deleteMessageFromLocalStorage({required String msgID, Object? webMessageInstance}) Future<V2TimCallback>
deleteMessages({required List<String> msgIDs, List? webMessageInstanceList}) Future<V2TimCallback>
downloadMergerMessage({required String msgID}) Future<List<V2TimMessage>?>
downloadMessage({required String msgID, required int messageType, required int imageType, required bool isSnapshot}) Future<V2TimCallback>
findMessages({required List<String> messageIDList}) Future<List<V2TimMessage>?>
getGroupMessageReadMemberList({required String messageID, required GetGroupMessageReadMemberListFilter filter, int nextSeq = 0, int count = 100}) Future<V2TimValueCallback<V2TimGroupMessageReadMemberList>>
getHistoryMessageList({HistoryMsgGetTypeEnum getType = HistoryMsgGetTypeEnum.V2TIM_GET_LOCAL_OLDER_MSG, String? userID, String? groupID, int lastMsgSeq, required int count, String? lastMsgID, List<int>? messageTypeList}) Future<List<V2TimMessage>>
getHistoryMessageListV2({HistoryMsgGetTypeEnum getType = HistoryMsgGetTypeEnum.V2TIM_GET_LOCAL_OLDER_MSG, String? userID, String? groupID, int lastMsgSeq, required int count, String? lastMsgID, List<int>? messageTypeList}) Future<MessageListResponse>
getHistoryMessageListWithComplete({HistoryMsgGetTypeEnum getType = HistoryMsgGetTypeEnum.V2TIM_GET_LOCAL_OLDER_MSG, String? userID, String? groupID, int lastMsgSeq, required int count, String? lastMsgID, List<int>? messageTypeList}) Future<V2TimMessageListResult?>
getMessageOnlineUrl({required String msgID}) Future<V2TimValueCallback<V2TimMessageOnlineUrl>>
getMessageReadReceipts({required List<String> messageIDList}) Future<V2TimValueCallback<List<V2TimMessageReceipt>>>
markC2CMessageAsRead({required String userID}) Future<V2TimCallback>
markGroupMessageAsRead({required String groupID}) Future<V2TimCallback>
modifyMessage({required V2TimMessage message}) Future<V2TimValueCallback<V2TimMessageChangeInfo>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAdvancedMsgListener({V2TimAdvancedMsgListener? listener}) Future<void>
removeSimpleMsgListener({V2TimSimpleMsgListener? listener}) Future<void>
reSendMessage({required String msgID, bool onlineUserOnly}) Future<V2TimValueCallback<V2TimMessage>>
revokeMessage({required String msgID, Object? webMessageInstance}) Future<V2TimCallback>
searchLocalMessages({required V2TimMessageSearchParam searchParam}) Future<V2TimValueCallback<V2TimMessageSearchResult>>
sendMessage({required String id, required String receiver, required String groupID, MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL, bool onlineUserOnly = false, bool isExcludedFromUnreadCount = false, bool needReadReceipt = false, OfflinePushInfo? offlinePushInfo, String? cloudCustomData, String? localCustomData}) Future<V2TimValueCallback<V2TimMessage>>
sendMessageReadReceipts({required List<String> messageIDList}) Future<V2TimCallback>
sendReplyMessage({required String id, required String receiver, required String groupID, OfflinePushInfo? offlinePushInfo, bool needReadReceipt = false, required V2TimMessage replyMessage}) Future<V2TimValueCallback<V2TimMessage>>
setC2CReceiveMessageOpt({required List<String> userIDList, required ReceiveMsgOptEnum opt}) Future<V2TimCallback>
setGroupReceiveMessageOpt({required String groupID, required ReceiveMsgOptEnum opt}) Future<V2TimCallback>
setLocalCustomData({required String msgID, required String localCustomData}) Future<V2TimCallback>
setLocalCustomInt({required String msgID, required int localCustomInt}) Future<V2TimCallback>
toString() String
A string representation of this object.
inherited
translateText(String text, String target) Future<String>

Operators

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