Events Interface
Introduction#
The Events interface provides methods to manage and call events within the Polar API.
Methods#
repository#
java
EventListenerRepository repository();Description:
Gets the event listener repository, which is used to register and unregister event listeners.
Returns:
The EventListenerRepository instance.
callEvent#
java
<T extends PolarApiEvent> void callEvent(T event);Description:
Calls an event, which will trigger all registered listeners for that event type.
Parameters:
event- The event to call.