Package io.rong.imlib

## Class RongIMClient.ResultCallback

- All Implemented Interfaces:

      public abstract class RongIMClient.ResultCallback<T>

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

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public class` | `RongIMClient.ResultCallback.Result` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RongIMClient.ResultCallback()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract void` | `onSuccess(T t)` | 成功时回调。
    `abstract void` | `onError(RongIMClient.ErrorCode e)` | 错误时回调。
    `void` | `onFail(int errorCode)` |
    `void` | `onFail(RongIMClient.ErrorCode errorCode)` |
    `void` | `onCallback(T t)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RongIMClient.ResultCallback

          RongIMClient.ResultCallback()

  - ### Method Detail

    - #### onSuccess

           abstract void onSuccess(T t)

      成功时回调。

      Parameters:
        `t` - 已声明的类型。

    - #### onError

           abstract void onError(RongIMClient.ErrorCode e)

      错误时回调。

      Parameters:
        `e` - 错误代码。

    - #### onFail

           void onFail(int errorCode)

    - #### onFail

           void onFail(RongIMClient.ErrorCode errorCode)

    - #### onCallback

           void onCallback(T t)