Skip to content
On this page

GlobalEventType (Enum)

The GlobalEventType enum defines global event types that can be listened for in the SWAG HTML5 SDK.

Values

ValueDescription
API_COMMUNICATION_ERRORIndicates an API communication error.
ERRORIndicates a general error.
SESSION_READYIndicates the session is ready.
SPLASH_SCREEN_CLICK_PLAYUser clicked play on the splash screen.
TOOLBAR_CLICK_FULL_SCREENUser clicked fullscreen in the toolbar.

Usage

Used to subscribe to global events in the SDK using the on and off methods.

Example:

javascript
swag.on('SESSION_READY', () => {
    console.log('Session is ready!');
});