Package io.rong.imlib
Class RongIMClient.UploadMediaCallback
-
- All Implemented Interfaces:
public abstract class RongIMClient.UploadMediaCallback extends RongIMClient.ResultCallback<T>
Callback for uploading media files.
-
-
Constructor Summary
Constructors Constructor Description RongIMClient.UploadMediaCallback()
-
Method Summary
Modifier and Type Method Description abstract void
onProgress(Message message, int progress)
Upload progress of media files. abstract void
onError(Message message, RongIMClient.ErrorCode errorCode)
Failed to upload the file. void
onError(RongIMClient.ErrorCode e)
Callback triggered on error. -
-
Method Detail
-
onProgress
abstract void onProgress(Message message, int progress)
Upload progress of media files.
- Parameters:
message
- The message object.progress
- The upload progress, ranging from 0 to 100.
-
onError
abstract void onError(Message message, RongIMClient.ErrorCode errorCode)
Failed to upload the file.
- Parameters:
message
- The message object.errorCode
- The error code.
-
onError
void onError(RongIMClient.ErrorCode e)
Callback triggered on error.
- Parameters:
e
- Error code.
-
-
-
-