downloadMediaFile

public abstract void downloadMediaFile(String fileUniqueId, String fileUrl, String fileName, String path, IRongCallback.IDownloadMediaFileCallback callback)

Download a file.

Supports resumable downloads. To pause the download, use pauseDownloadMediaFile.

Parameters

fileUniqueId

Unique identifier of the file, corresponding to the first parameter of pauseDownloadMediaFile

fileUrl

URL of the file to download

fileName

Name of the file

path

Directory to save the downloaded file. For targetVersion 29, due to access restrictions, it is recommended to use context.getExternalFilesDir() to save to a private directory

callback

Callback for file download