Package io.rong.imlib

## Class RongIMClient.SendImageMessageWithUploadListenerCallback

- All Implemented Interfaces:

      public abstract class RongIMClient.SendImageMessageWithUploadListenerCallback

  发送图片消息回调。

  如果需要将图片上传到自己服务器，请使用这个回调。

- - ### Nested Class Summary

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

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RongIMClient.SendImageMessageWithUploadListenerCallback()` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract void` | `onAttached(Message message, RongIMClient.UploadImageStatusListener watcher)` | 消息已保存数据库。
    `abstract void` | `onError(Message message, RongIMClient.ErrorCode code)` | 消息发送失败。
    `void` | `onAttached(Message message, UploadImageStatusListener watcher)` |
    `void` | `onError(Message message, CoreErrorCode code)` |

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

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

- - ### Constructor Detail

    - #### RongIMClient.SendImageMessageWithUploadListenerCallback

          RongIMClient.SendImageMessageWithUploadListenerCallback()

  - ### Method Detail

    - #### onAttached

           abstract void onAttached(Message message, RongIMClient.UploadImageStatusListener watcher)

      消息已保存数据库。

      Parameters:
        `message` - 保存后的消息实体。
        `watcher` - 用于更新图片上传进度。

    - #### onError

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

      消息发送失败。

      Parameters:
        `message` - 发送失败的消息实体。
        `code` - 失败错误码。

    - #### onAttached

           void onAttached(Message message, UploadImageStatusListener watcher)

    - #### onError

           void onError(Message message, CoreErrorCode code)