NAV Navbar
javascript

.setCallback()

SnapEngage.setCallback(eventName, function (eventParameters) {
    console.log(eventParameters);
});

The method used to hook a function onto a SnapEngage JavaScript Event. For a full list of eventName and eventParameters, please reference the SnapEngage JavaScript Events documentation.

Parameters

Parameter Type Description
eventName String The event on which to fire an anonymous function.
Anonymous Function Function The second parameter of this function is an anonymous function. The anonymous function accepts various eventParameters which are detailed in the SnapEngage JavaScript Events documentation.