OnMessageDownloadProgressCallback
Introduction
The callback of downloading file progress
Works since version 5.0.2.
Returned template
OnMessageDownloadProgressCallback = void Function(
V2TimMessageDownloadProgress messageProgress,
);
Return value details
name | type | description |
---|---|---|
messageProgress | V2TimMessageDownloadProgress | Download Progress |
Code example
V2TimAdvancedMsgListener listener = V2TimAdvancedMsgListener(
onMessageDownloadProgressCallback:
(V2TimMessageDownloadProgress messageProgress) {
messageProgress.currentSize;
messageProgress.isError;
messageProgress.isFinish;
messageProgress.isSnapshot;
messageProgress.msgID;
messageProgress.path;
messageProgress.totalSize;
messageProgress.type;
},
);
TencentImSDKPlugin.v2TIMManager
.getMessageManager()
.addAdvancedMsgListener(listener: listener);