Add an event listener and track it for later cleanup
Event target (window, document, element, etc.)
Event type ('click', 'wheel', 'mousemove', etc.)
Event handler function
Optionaloptions: AddEventListenerOptionsOptional event listener options
Action object that can be used to remove this specific listener
Get the count of active actions
Useful for debugging and testing
Check if a specific action is currently active
The action to check
True if the action is active
Remove a specific event listener
The action object returned from add()
Remove all event listeners managed by this ActionManager
Should be called when the component is destroyed to prevent memory leaks
Manages event listener lifecycle to prevent memory leaks