Search Docs
Loading...
Skip to content

Class: EventAPI

EventAPI provides methods for event subscription

Implements#

  • IEventAPI

Constructors#

Constructor#


| Parameter | Type | | —— | —— | | engine | NativeEngine |

Returns#

EventAPI

Properties#

Property Type Description
subscribe (blocks, callback) => () => void Subscribe to block lifecycle events. Events are bundled and delivered at the end of each engine update cycle.