Package io.rong.imlib

## Class IRongCoreCallback.UploadMediaCallback

- All Implemented Interfaces:

      public abstract class IRongCoreCallback.UploadMediaCallback
      extends IRongCoreCallback.ResultCallback<T>

  上传媒体文件的回调。

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `IRongCoreCallback.UploadMediaCallback()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract void` | `onProgress(Message message, int progress)` | 上传媒体文件进度。
    `abstract void` | `onError(Message message, IRongCoreEnum.CoreErrorCode coreErrorCode)` | 上传文件失败。
    `void` | `onError(IRongCoreEnum.CoreErrorCode e)` | 错误时回调。

    - ### Methods inherited from class io.rong.imlib.IRongCoreCallback.ResultCallback

      `onCallback, onFail, onFail, onSuccess`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### IRongCoreCallback.UploadMediaCallback

          IRongCoreCallback.UploadMediaCallback()

  - ### Method Detail

    - #### onProgress

           abstract void onProgress(Message message, int progress)

      上传媒体文件进度。

      Parameters:
        `message` - 消息实体。
        `progress` - 上传进度，0 - 100.

    - #### onError

           abstract void onError(Message message, IRongCoreEnum.CoreErrorCode coreErrorCode)

      上传文件失败。

      Parameters:
        `message` - 消息实体。
        `coreErrorCode` - 错误码。

    - #### onError

           void onError(IRongCoreEnum.CoreErrorCode e)

      错误时回调。

      Parameters:
        `e` - 错误代码。