跳到主要内容

Class: ILeverActionAfterEventSignal

Provides an adaptable interface for callers to subscribe to an event that fires after a lever is used.

Extended by

Constructors

new ILeverActionAfterEventSignal()

private new ILeverActionAfterEventSignal(): ILeverActionAfterEventSignal

Returns

ILeverActionAfterEventSignal

Methods

subscribe()

subscribe(callback): (arg) => void

Parameters

ParameterType
callback(arg) => void

Returns

Function

Parameters
ParameterType
argLeverActionAfterEvent
Returns

void

Remarks

Subscribes to the event.

This function can't be called in read-only mode.


unsubscribe()

unsubscribe(callback): void

Parameters

ParameterType
callback(arg) => void

Returns

void

Remarks

Unsubscribes from the event.

This function can't be called in read-only mode.

Throws

This function can throw errors.