Package io.rong.imlib

## Class RongIMClient.UploadMediaCallback

- All Implemented Interfaces:

      public abstract class RongIMClient.UploadMediaCallback
      extends RongIMClient.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
    --- | ---
    `RongIMClient.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, RongIMClient.ErrorCode errorCode)` | 上传文件失败。
    `void` | `onError(RongIMClient.ErrorCode e)` | 错误时回调。

    - ### Methods inherited from class io.rong.imlib.RongIMClient.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

    - #### RongIMClient.UploadMediaCallback

          RongIMClient.UploadMediaCallback()

  - ### Method Detail

    - #### onProgress

           abstract void onProgress(Message message, int progress)

      上传媒体文件进度。

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

    - #### onError

           abstract void onError(Message message, RongIMClient.ErrorCode errorCode)

      上传文件失败。

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

    - #### onError

           void onError(RongIMClient.ErrorCode e)

      错误时回调。

      Parameters:
        `e` - 错误代码。