downloadMediaFile

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

fileUniqueId

The unique identifier of the file, corresponding to the first parameter of pauseDownloadMediaFile.

fileUrl

The download URL of the file.

fileName

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.