Package io.rong.imlib

## Interface IRongCoreCallback.SubscribeEventCallback

- All Implemented Interfaces:
    `io.rong.imlib.IRongCoreCallback.OperationCallbackEx`

      public interface IRongCoreCallback.SubscribeEventCallback<T>
       implements IRongCoreCallback.OperationCallbackEx<T>

  用于处理订阅事件的回调接口。

  该接口定义了订阅操作成功和失败时的回调方法。

  Since:

    5.8.0

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract void` | `onError(int errorCode, T errorData)` |
    `void` | `onError(IRongCoreEnum.CoreErrorCode errorCode, T errorData)` | 当失败时被调用。

    - ### Methods inherited from class io.rong.imlib.IRongCoreCallback.OperationCallbackEx

      `onCallback, onFail, onFail, onSuccess`

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

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

- - ### Constructor Detail

  - ### Method Detail

    - #### onError

          @Deprecated() abstract void onError(int errorCode, T errorData)

    - #### onError

           void onError(IRongCoreEnum.CoreErrorCode errorCode, T errorData)

      当失败时被调用。

      Parameters:
        `errorCode` - 错误码，用于失败的原因。
        `errorData` - 与错误代码相关联的额外信息，其类型由接口的泛型参数指定。