Event.getRules()
Retrieves all the rules registered for a declarative event.
Retrieves all the rules registered for a declarative event.
Syntax
events.Event.getRules(ruleIdentifiers, callback)
Parameters
ruleIdentifiers-
:
arrayofstring. Identifiers for the rules to return. If no array is passed, all rules are returned. -
callback - :
function. The parameter of the callback function is an array of events.Rule objects.
Browser compatibility
[!NOTE] This API is based on Chromium's
chrome.eventsAPI. This documentation is derived fromevents.jsonin the Chromium code.