notifier

SDK3DVerse. notifier

Event Emitter object. Used to subscribe to all events from the SDK.

See official EventEmitter documentation for further details.

Methods

off(eventName, listener) → {EventEmitter}

Removes the specified listener from the listener array for the event named eventName.

See official EventEmitter documentation for further details.

Parameters:
Name Type Description
eventName string

The name of the event.

listener function

The callback function

Returns:

Returns a reference to the EventEmitter, so that calls can be chained.

Type
EventEmitter

on(eventName, listener) → {EventEmitter}

Adds the listener function to the end of the listeners array for the event named eventName.

See official EventEmitter documentation for further details.

Parameters:
Name Type Description
eventName string

The name of the event.

listener function

The callback function

Returns:

Returns a reference to the EventEmitter, so that calls can be chained.

Type
EventEmitter