Package io.rong.imlib
Class RongIMClient.SendImageMessageWithUploadListenerCallback
-
- All Implemented Interfaces:
public abstract class RongIMClient.SendImageMessageWithUploadListenerCallbackCallback for sending image messages.
Use this callback if you need to upload the image to your own server.
-
-
Constructor Summary
Constructors Constructor Description RongIMClient.SendImageMessageWithUploadListenerCallback()
-
Method Summary
Modifier and Type Method Description abstract voidonAttached(Message message, RongIMClient.UploadImageStatusListener watcher)The message has been saved to the database. abstract voidonError(Message message, RongIMClient.ErrorCode code)Message sending failed. voidonAttached(Message message, UploadImageStatusListener watcher)voidonError(Message message, CoreErrorCode code)-
-
Method Detail
-
onAttached
abstract void onAttached(Message message, RongIMClient.UploadImageStatusListener watcher)
The message has been saved to the database.
- Parameters:
message- The message entity after being saved.watcher- Used to update the image upload progress.
-
onError
abstract void onError(Message message, RongIMClient.ErrorCode code)
Message sending failed.
- Parameters:
message- The message object that failed to send.code- The error code of the failure.
-
onAttached
void onAttached(Message message, UploadImageStatusListener watcher)
-
onError
void onError(Message message, CoreErrorCode code)
-
-
-
-