downloadMediaFile abstract method
Future<ZIMMediaDownloadedResult>
downloadMediaFile(
- ZIMMessage message,
- ZIMMediaFileType fileType,
- ZIMMediaDownloadConfig config,
- ZIMMediaDownloadingProgress? progress,
Download media message content.
Supported versions: 2.1.5 and above.
Detailed description: This method can be used to download the content of media messages, including the original image, large image, thumbnail image, file message, audio message, video message and the first frame of the image message.
Service scenario: After the user receives a message, if the message is a media message, he can call this API to download its content.
Invoke timing/notification timing: can be invoked after logging in and receiving a media message.
message
The message to be received.
fileType
Media file type
progress
Callback of the progress.
Implementation
Future<ZIMMediaDownloadedResult> downloadMediaFile(
ZIMMessage message,
ZIMMediaFileType fileType,
ZIMMediaDownloadConfig config,
ZIMMediaDownloadingProgress? progress);