downloadMedia

public abstract void downloadMedia(ConversationType conversationType, String targetId, String channelId, IRongCoreEnum.MediaType mediaType, String imageUrl, IRongCoreCallback.DownloadMediaCallback callback)

Downloads multimedia files.

If the file exists in the local cache, it will be retrieved directly from the cache. Otherwise, it will be downloaded from the server.

Since

5.1.1

Parameters

conversationType

The type of conversation.

targetId

The ID of the conversation. Depending on the conversationType, this could be a user ID, discussion group ID, group ID, or chatroom ID.

channelId

The business identifier of the conversation to which the message belongs.

mediaType

The type of file.

imageUrl

The URL of the file.

callback

The callback for downloading the file.