Methods
Viewer
addEventListener
Adds an event listener to the viewer instance.
Name of the viewer event to listen for.
Valid event names can be found in each Event page.
Type | Required |
---|---|
String | Yes |
Function invoked when the event is triggered. The function receives an event object as an argument which includes data specific to the event type.
Type | Required |
---|---|
(event: Object) => Void | Yes |
The event listener object.
Type |
---|
Object |
Properties
Name | Type | Description |
---|---|---|
remove | () => Void | Removes the event listener |
Updated 12 Sep 2024
Did this page help you?