# ResultCallback

public abstract class ResultCallback<T>

泛型类，用于 API 中功能的回调处理。

#### Inheritors

SyncCallback
SendMessageCallback
UploadMediaCallback
DownloadMediaCallback
GetNotificationQuietHoursCallback
GetBlacklistCallback
CreateDiscussionCallback

## Constructors

RongIMClient.ResultCallback
Link copied to clipboard
public void RongIMClient.ResultCallback()

## Types

Result
Link copied to clipboard
public class Result<T>

## Functions

onCallback
Link copied to clipboard
public void onCallback(T t)
onError
Link copied to clipboard
public abstract void onError(RongIMClient.ErrorCode e)
错误时回调。
onFail
Link copied to clipboard
public void onFail(int errorCode)
public void onFail(RongIMClient.ErrorCode errorCode)
onSuccess
Link copied to clipboard
public abstract void onSuccess(T t)
成功时回调。