Package io.rong.imlib

Interface IRongCoreCallback.SubscribeEventCallback

  • All Implemented Interfaces:

    
    public interface IRongCoreCallback.SubscribeEventCallback<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 onSuccess() 当订阅操作成功完成时被调用。
      abstract void onError(int errorCode, T t) 当订阅操作失败时被调用。
      void onCallback()
      void onFail(int errorCode, T t)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onSuccess

         abstract void onSuccess()

        当订阅操作成功完成时被调用。

        Since:

        5.8.0

      • onError

         abstract void onError(int errorCode, T t)

        当订阅操作失败时被调用。

        Parameters:
        errorCode - 错误代码,用于标识订阅失败的原因。
        t - 与错误代码相关联的额外信息,其类型由接口的泛型参数指定。
        Since:

        5.8.0

      • onFail

         void onFail(int errorCode, T t)