Communicates between different browser parts.
- Source:
Requires
Methods
(static) addListener(messageType, callback) → {void}
- Source:
Add a listener for a specific type.
You can add multiple listeners, but may NOT preserve the order. Actually it does call them in reverse as it uses a stack (LIFO) internally.
Parameters:
Name | Type | Description |
---|---|---|
messageType |
COMMUNICATION_MESSAGE_TYPE | type of message to receive |
callback |
listenerCallback |
Returns:
- Type
- void
(static) init() → {void}
- Source:
Init context menu module.
Adds menu elements.
Returns:
- Type
- void