Registers an event listener callback to an event.
Called when an event occurs. The parameters of this function depend on the type of event.
OptionaladdOptionalgetReturns currently registered rules.
Name of the event this function affects.
If provided, this is an integer that uniquely identfies the
OptionalruleIdentifiers: string[]
If an array is passed, only rules with identifiers contained in this array are returned.
Listener whose registration status shall be tested.
True if callback is registered to the event.
True if any event listeners are registered to the event.
Deregisters an event listener callback from an event.
Listener that shall be unregistered.
OptionalremoveUnregisters currently registered rules.
Name of the event this function affects.
If provided, this is an integer that uniquely identfies the
OptionalruleIdentifiers: string[]
If an array is passed, only rules with identifiers contained in this array are unregistered.
An object which allows the addition and removal of listeners for a Chrome event.