# UploadMediaCallback

public abstract class UploadMediaCallback extends IRongCoreCallback.ResultCallback<T>

上传媒体文件的回调。

## Constructors

IRongCoreCallback.UploadMediaCallback
Link copied to clipboard
public void IRongCoreCallback.UploadMediaCallback()

## Functions

onError
Link copied to clipboard
public void onError(IRongCoreEnum.CoreErrorCode e)
错误时回调。
public abstract void onError(Message message, IRongCoreEnum.CoreErrorCode coreErrorCode)
上传文件失败。
onProgress
Link copied to clipboard
public abstract void onProgress(Message message, int progress)
上传媒体文件进度。

## Inherited functions

onCallback
Link copied to clipboard
public void onCallback(T t)
onFail
Link copied to clipboard
public void onFail(IRongCoreEnum.CoreErrorCode coreErrorCode)
public void onFail(int errorCode)
onSuccess
Link copied to clipboard
public abstract void onSuccess(T t)
成功时回调。