onEvent

abstract fun onEvent(event: Any)

A callback that is invoked when an event is emitted.

Note: events are emitted on the thread they're created on, and no threading guarantees are given.

Parameters

event

the event being emitted.