Skip to content

Scripting API / inspection/InspectionListener

inspection/InspectionListener

Modules

Module Description
External -

Classes

InspectionListener

Extends

Methods

addEventListener()

addEventListener(eventType, handler): ScriptEventSubscription

Binds the given function to an event fired by one or more sub-inspections. Returns a GUID that can be used to remove the added event

Parameters
Parameter Type Description
eventType InspectionEventType Type of event to bind to (e.g. 'afterStart'). Valid types are determined by the EventType generic.
handler EventHandler<any> -
Returns

ScriptEventSubscription

Inherited from

GSEventListener.addEventListener

Type Aliases

InspectionEventOptions

InspectionEventOptions = any