TencentCloudChatMessageData<T> class
Methods
-
checkAutoPlayConditions(String msgID)
→ bool
-
function for checking whether the conditions for automatically playing audio are satisfied
-
clear()
→ void
-
override
-
clearMessageList({String? userID, String? groupID})
→ void
-
-
clearMessageListStatus({String? userID, String? groupID})
→ dynamic
-
function for clearing message list status
userID
(optional) string
groupID
(optional) string
message list status would be clear according to the sequence of groupID - userID
-
console({required String logs, TencentCloudChatLogLevel? logLevel})
→ dynamic
-
A helper method for logging console messages.
inherited
-
getMessageList({required String key})
→ List<V2TimMessage>
-
function for getting message list
key
(optional) string
returns list of V2TimMessage
-
getMessageListStatus({String? userID, String? groupID})
→ MessageListStatus
-
function for getting message list status
userID
(optional)
groupID
(optional)
returns MessageListStatus
-
getMessageReadReceipt({required String msgID, required String userID, required int timestamp})
→ V2TimMessageReceipt
-
function for getting message read Receipt
msgID
(required) message ID
userID
(required) user ID
timestamp
(required) timestamp
returns V2TimMessageReceipt as a result
-
getMsgReadReceipt(List<V2TimMessage> message)
→ dynamic
-
Function for getting message read receipt
-
init()
→ void
-
==== Init data and the listener ====
-
isPause({required String msgID})
→ bool
-
function for checking if audio is paused
msgID
(required) message ID
returns a bool value
-
isPlaying({required String msgID})
→ bool
-
function for checking if audio is playing
msgID
(required) message ID
returns a bool value
-
loadMessageList({String? userID, String? groupID, String? topicID, required TencentCloudChatMessageLoadDirection direction, int count = 20, String? lastMsgID, int? lastMsgSeq})
→ Future<bool>
-
function to load message list
userID
(optional) string
groupID
(optional) string
direction
(required) TencentCloudChatMessageLoadDirection
count
(optional) int, default value is 20
lastMsgID
(optional) string
-
loadToSpecificMessage({String? userID, String? groupID, String? topicID, int count = 20, String? msgID, int? timeStamp, int? seq})
→ Future<({bool haveMoreLatestData, bool haveMorePreviousData, V2TimMessage? targetMessage})>
-
function for loading list to specific message
userID
(optional) string
groupID
(optional) string
count
(optional) int, default value is 20
msgID
(optional) string
timeStamp
(optional) int
seq
(optional) int
Returns {haveMoreLatestData
,haveMorePreviousData
} according to msgID, timestamp and seq
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListener(T key, {String? userID, String? groupID})
→ void
-
override
-
onConnectSuccess()
→ void
-
Callback for network connect success
function(V2TimMessage)
-
onFriendInfoChanged(List<V2TimFriendInfo> friendInfoList)
→ void
-
Callback for friend info change
function(V2TimMessage)
-
onReceiveC2CMessageReadReceipts(List<V2TimMessageReceipt> receiptList)
→ void
-
-
onReceiveMessageModified(V2TimMessage newMessage)
→ void
-
Callback for receiving message was modified
function(V2TimMessage)
-
onReceiveMessageReadReceipts(List<V2TimMessageReceipt> receiptList)
→ void
-
-
onReceiveMessageRecalled(String msgID)
→ void
-
Callback for receiving message was recalled
function(V2TimMessage)
-
onReceiveNewMessage(V2TimMessage newMessage)
→ void
-
Callback for receiving new message
function(V2TimMessage)
-
onRecvMessageRevokedWithInfo(String msgID, V2TimUserFullInfo operateUser, String reason)
→ void
-
-
onSendMessageProgress({required V2TimMessage message, required int progress, required bool isSendComplete, String? id})
→ dynamic
-
-
onSendMessageProgressFromSDK(V2TimMessage message, int progress)
→ dynamic
-
function for getting sending message progress
-
onUserStatusChanged(List<V2TimUserStatus> userStatusList)
→ void
-
Callback for user status change
function(V2TimMessage)
-
pauseAudio()
→ dynamic
-
function for pausing audio
-
playAudio({required AudioPlayInfo source})
→ dynamic
-
function for playing audio message
source
(required) audio message's source
-
playNativeNotification()
→ dynamic
-
function for playing audio notification
-
playNextAudio(String msgID)
→ dynamic
-
function for playing next audio
-
resumeAudio()
→ dynamic
-
function for resuming audio
-
stopPlayAudio()
→ dynamic
-
function for stop playing audio
-
toJson()
→ Map<String, dynamic>
-
function for updating currently downloading message's local url in memory
progress
V2TimMessageDownloadProgress
function for updating current downloading message progress
after updating, function will notify listener TencentCloudChatMessageDataKeys.downloadMessag
progress
V2TimMessageDownloadProgress
Callback for message downloading progress
function(V2TimMessageDownloadProgress)
function for removing message from download queue
msgID
(required) string, messageID
function for adding message to downloading queue
data
(required) DownloadMessageQueueData
isClick
(optional) bool
function for start downling data in downloading queue
function for checking if message is downloading
msgID
(required) messageID
returns bool value whether message is downloading
function for checking if message is in downloading queue
msgID
(required) messageID
returns bool value whether message is in downloading queue
==== Common Functions ====
override
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateCurrentAudioPlayInfo({required double progress, required bool isCompleted, bool? isPaused})
→ dynamic
-
function for updating currently played audio information
progress
(required) progress of currently played audio
isCompleted
(required) whether currently played audio is finished
isPaused
(optional) whether currently played audio is paused
-
updateDownloadingMessage(List<DownloadMessageQueueData> currentDownload)
→ void
-
-
updateLocalCustomDataInMemory({required String msgID, required String data, required String key, required int convType})
→ void
-
function for updating local custom data in memory
msgID
(required) string
data
(required) string
key
(required) string
convType
(required) int
-
updateMessageList({String? userID, String? groupID, String? topicID, required List<V2TimMessage> messageList, bool disableNotify = false})
→ void
-
function for updating message list
userID
(optional) string
groupID
(optional) string
messageList
(required) List
-
updateMessageReadReceipt({required String msgID, required V2TimMessageReceipt receipt})
→ void
-
function for updating message read receipt
msgID
(required) message ID
receipt
(required) message read receipt