Package io.rong.imlib
Class IRongCoreCallback.SendImageMessageWithUploadListenerCallback
-
- All Implemented Interfaces:
public abstract class IRongCoreCallback.SendImageMessageWithUploadListenerCallback
Callback for sending image messages.
Use this callback if you need to upload the image to your own server.
-
-
Constructor Summary
Constructors Constructor Description IRongCoreCallback.SendImageMessageWithUploadListenerCallback()
-
Method Summary
Modifier and Type Method Description abstract void
onAttached(Message message, IRongCoreListener.UploadImageStatusListener watcher)
The message has been saved to the database. abstract void
onError(Message message, IRongCoreEnum.CoreErrorCode code)
Message sending failed. abstract void
onSuccess(Message message)
Message sent successfully. abstract void
onProgress(Message message, int progress)
Message sending progress. -
-
Method Detail
-
onAttached
abstract void onAttached(Message message, IRongCoreListener.UploadImageStatusListener watcher)
The message has been saved to the database.
- Parameters:
message
- The saved message object.watcher
- Used to update the image upload progress.
-
onError
abstract void onError(Message message, IRongCoreEnum.CoreErrorCode code)
Message sending failed.
- Parameters:
message
- The message entity that failed to send.code
- The error code indicating the failure.
-
onSuccess
abstract void onSuccess(Message message)
Message sent successfully.
- Parameters:
message
- The message entity that was sent successfully.
-
onProgress
abstract void onProgress(Message message, int progress)
Message sending progress.
- Parameters:
message
- The message object being sent.progress
- The progress of message sending, ranging from 0 to 100.
-
-
-
-