download Media File
public abstract void downloadMediaFile(String fileUniqueId, String fileUrl, String fileName, String path, IRongCoreCallback.IDownloadMediaFileCallback callback)
Download a file.
Supports resumable downloads. To pause the download, call pauseDownloadMediaFile.
Since
5.0.0
Parameters
file Unique Id
The unique identifier of the file, corresponding to the first parameter of pauseDownloadMediaFile.
file Url
The download URL of the file.
file Name
The name of the file.
path
The directory to save the downloaded file. For targetVersion 29, due to access permissions, it is recommended to use context.getExternalFilesDir() to save the file to a private directory.
callback
The callback for the file download.