Event.addListener()
Registers an event listener callback to an event.
Syntax
js
events.Event.addListener(listener)
Parameters
listener-
Function called when the event occurs. The parameters of this function depend on the type of event.
Browser compatibility
Note:
This API is based on Chromium's chrome.events API. This documentation is derived from events.json in the Chromium code.