Interface OnSubscribeEventListener

  • All Implemented Interfaces:

    
    public interface OnSubscribeEventListener
    
                        

    Subscription event listener interface.

    Purpose: Used to receive notifications when subscribed events change.

    Implement this interface to get updates when subscribed events are modified.

    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
      void onEventChange(List<SubscribeInfoEvent> subscribeEvents) This method is called when subscription events change.
      void onSubscriptionSyncCompleted() Marks the completion of subscription data synchronization.
      void onSubscriptionSyncCompleted(SubscribeType type) Marks the completion of subscription data synchronization.
      void onSubscriptionChangedOnOtherDevices(List<SubscribeEvent> subscribeEvents) This method is called when the subscription information of the user changes on other devices.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onEventChange

         void onEventChange(List<SubscribeInfoEvent> subscribeEvents)

        This method is called when subscription events change.

        Functionality: This method is triggered when any subscribed event changes.

        You can implement this method to handle event changes, such as updating the user interface or processing new data.

        Parameters:
        subscribeEvents - The list of subscription events, containing all events that have changed.
        Since:

        5.8.0

      • onSubscriptionSyncCompleted

        @Deprecated() void onSubscriptionSyncCompleted()

        Marks the completion of subscription data synchronization. This method is invoked after the subscription data has been successfully synchronized to the device or system, and is used to execute subsequent processing.

        Since:

        5.8.0

      • onSubscriptionSyncCompleted

         void onSubscriptionSyncCompleted(SubscribeType type)

        Marks the completion of subscription data synchronization. This method is called after the subscription data is successfully synchronized to the device or system, and is used to perform subsequent processing.

        Parameters:
        type - The type of synchronization completion.
        Since:

        5.10.0

      • onSubscriptionChangedOnOtherDevices

         void onSubscriptionChangedOnOtherDevices(List<SubscribeEvent> subscribeEvents)

        This method is called when the subscription information of the user changes on other devices. It can be used to update the user status on the current device, ensuring the consistency of subscription information.

        Since:

        5.8.0