ChatDownloadCallback constructor

ChatDownloadCallback({
  1. void onSuccess(
    1. String fileId,
    2. String path
    )?,
  2. void onError(
    1. String fileId,
    2. ChatError error
    )?,
  3. void onProgress(
    1. String fileId,
    2. int progress
    )?,
})

~english Create a group shared file download callback. ~end

~chinese 创建文件下载对象。 ~end

Implementation

ChatDownloadCallback({
  this.onSuccess,
  this.onError,
  this.onProgress,
});