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
-
-
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. -
-
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
-
-
-
-