Called from inside the script to register a new event handler.
Name of the event.
JavaScript function used to handle the event.
() => void (enable/disable)
() => void
(Event) => void (handler)
(Event) => void
async (Event) => void (sequenceHandler)
async (Event) => void