TargetBlockHitAfterEventSignal Class

Manages callbacks that are connected to when a target block is hit.

Methods

subscribe

subscribe(callback: (arg: TargetBlockHitAfterEvent) => void): (arg: TargetBlockHitAfterEvent) => void

Adds a callback that will be called when a target block is hit.

Parameters

Returns (arg: TargetBlockHitAfterEvent) => void

Important

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

unsubscribe

unsubscribe(callback: (arg: TargetBlockHitAfterEvent) => void): void

Removes a callback from being called when a target block is hit.

Parameters

Important

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