API for managing events. Use this to register event handlers for the various types of events emitted by the system, and also for definining your custom events and handlers. @see module:constants for a list of emitted system events.
- Source:
Members
-
<static> systemEvents
-
This is a map of system defined events to their respective event handlers.
- Source:
Properties:
Name Type Description NEW_INSTANCEObject Fired on request to push tile data update to Jive.
Properties
Name Type Description handlerfunction Logs the request context
INSTANCE_UPDATEDObject Fired on request to push tile data update to Jive.
Properties
Name Type Description handlerfunction Logs the request context
INSTANCE_REMOVEDObject Fired on request to push tile data update to Jive.
Properties
Name Type Description handlerfunction Logs the request context
PUSH_DATA_TO_JIVEObject Fired on request to push tile data update to Jive.
Properties
Name Type Description handlerfunction Passed context contains theInstance and data attributes. These are used to push a tile update into Jive.
PUSH_ACTIVITY_TO_JIVEObject Fired on request to push externatstream activity to Jive.
Properties
Name Type Description handlerfunction Passed context contains theInstance and activity attributes. These are used to push an extstreamstream activity entry into Jive.
PUSH_COMMENT_TO_JIVEObject Fired on request to push a comment into Jive.
Properties
Name Type Description handlerfunction Logs the request context
COMMENT_ON_ACTIVITYObject Fired on request to push a comment on an activity entry into Jive.
Properties
Name Type Description handlerfunction COMMENT_ON_ACTIVITY_BY_EXTERNAL_IDObject Fired on request to push a comment on an activity entry into Jive.
Properties
Name Type Description handlerfunction FETCH_COMMENTS_ON_ACTIVITYObject Fired on request for activity comments from Jive.
Properties
Name Type Description handlerfunction FETCH_ALL_COMMENTS_FOR_EXT_STREAMObject Fired on request for activity comments from Jive.
Properties
Name Type Description handlerfunction INSTANCE_REGISTRATIONObject Fired on request to register a new tile or externalstream instance.
Properties
Name Type Description handlerfunction INSTANCE_UNREGISTRATIONObject Fired on request to destroy a tile or externalstream instance.
Properties
Name Type Description handlerfunction CLIENT_APP_REGISTRATIONObject Fired on request to register a Jive instance on the service.
Properties
Name Type Description handlerfunction GET_PAGINATED_RESULTSObject Fired on request for paginated results from a Jive service.
Properties
Name Type Description handlerfunction GET_EXTERNAL_PROPSObject Fired on request for retrieving external props on a tile or externalstream instance.
Properties
Name Type Description handlerfunction SET_EXTERNAL_PROPSObject Fired on request for setting external props on a tile or externalstream instance.
Properties
Name Type Description handlerfunction DELETE_EXTERNAL_PROPSObject Fired on request for deleting external props on a tile or externalstream instance.
Properties
Name Type Description handlerfunction
Methods
-
<static> addLocalEventListener(event, handler)
-
Adds a local event handler.
Parameters:
Name Type Description eventString handlerfunction - Source:
-
<static> getEventListeners(event, eventListener) → {Array}
-
Returns array of registered event handling functions for the given event listener and event. Otherwise returns undefined.
Parameters:
Name Type Description eventString eventListenerString - Source:
Returns:
- Type
- Array
-
<static> registerEventListener(event, handler, options)
-
Add an event handler. The handler is invoked when an event is fired which specifies the target event listener and event type, if both are specified in the event firing. If only event is specified, then the handler will be invoked whenever that event is fired.
The handler is added to an array of handler functions assigned for the event listener. Only one function per event listener per event is permitted.Parameters:
Name Type Description eventString the event id
handlerfunction the function to call
optionsobject Properties
Name Type Description eventListenerString the name of the listener
descriptionString - Source:
-
<static> reset()
-
Removes all event handlers.
- Source: