Package io.rong.imlib

## Class IRongCoreListener.UploadImageStatusListener

- All Implemented Interfaces:

      public class IRongCoreListener.UploadImageStatusListener

  图片上传状态监听。

  如果使用者自己上传图片，那么需要通过调用 UploadImageStatusListener 中的方法将上传进度更新在 UI 上显示。 该 listener 通过 IRongCoreCallback.SendImageMessageWithUploadListenerCallback 返回实例供使用者使用。

- - ### Nested Class Summary

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

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `IRongCoreListener.UploadImageStatusListener(Message message, String pushContent, String pushData, IRongCoreCallback.SendImageMessageWithUploadListenerCallback callback)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `IRongCoreCallback.SendImageMessageWithUploadListenerCallback` | `getCallback()` |
    `Message` | `getMessage()` |
    `String` | `getPushContent()` |
    `String` | `getPushData()` |
    `void` | `update(int progress)` | 用户调用这个接口刷新进度
    `void` | `error()` | 上传失败时调用这个接口
    `void` | `success(Uri uploadedUri)` | 上传成功时调用这个接口

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

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

- - ### Constructor Detail

    - #### IRongCoreListener.UploadImageStatusListener

          IRongCoreListener.UploadImageStatusListener(Message message, String pushContent, String pushData, IRongCoreCallback.SendImageMessageWithUploadListenerCallback callback)

  - ### Method Detail

    - #### getCallback

           IRongCoreCallback.SendImageMessageWithUploadListenerCallback getCallback()

    - #### getMessage

           Message getMessage()

    - #### getPushContent

           String getPushContent()

    - #### getPushData

           String getPushData()

    - #### update

           void update(int progress)

      用户调用这个接口刷新进度

      Parameters:
        `progress` - 消息发送进度 0-100

    - #### error

           void error()

      上传失败时调用这个接口

    - #### success

           void success(Uri uploadedUri)

      上传成功时调用这个接口

      Parameters:
        `uploadedUri` - 上传成功后的图片地址，例如：http://XXX.