Package io.rong.imlib
Class IRongCoreListener.UploadImageStatusListener
-
- All Implemented Interfaces:
public class IRongCoreListener.UploadImageStatusListener
Listens for image upload status.
If the user uploads images themselves, they need to update the upload progress on the UI by calling methods in UploadImageStatusListener. This listener is returned via IRongCoreCallback.SendImageMessageWithUploadListenerCallback for the user to utilize.
-
-
Constructor Summary
Constructors Constructor Description IRongCoreListener.UploadImageStatusListener(Message message, String pushContent, String pushData, IRongCoreCallback.SendImageMessageWithUploadListenerCallback callback)
-
Method Summary
Modifier and Type Method Description IRongCoreCallback.SendImageMessageWithUploadListenerCallback
getCallback()
Message
getMessage()
String
getPushContent()
String
getPushData()
void
update(int progress)
User calls this API to refresh the progress. void
error()
Called when the upload fails void
success(Uri uploadedUri)
This interface is called when the upload is successful. -
-
Constructor Detail
-
IRongCoreListener.UploadImageStatusListener
IRongCoreListener.UploadImageStatusListener(Message message, String pushContent, String pushData, IRongCoreCallback.SendImageMessageWithUploadListenerCallback callback)
-
-
Method Detail
-
getMessage
Message getMessage()
-
getPushContent
String getPushContent()
-
getPushData
String getPushData()
-
update
void update(int progress)
User calls this API to refresh the progress.
- Parameters:
progress
- Indicates the message sending progress, ranging from 0 to 100.
-
error
void error()
Called when the upload fails
-
success
void success(Uri uploadedUri)
This interface is called when the upload is successful.
- Parameters:
uploadedUri
- The URL of the image after successful upload, e.g., http://XXX.jpg.
-
-
-
-