emit

fun emit(event: PortalEvents, data: Any)

Emits an event with the specified data to the underlying event provider.

This function acts as a wrapper around the provider.emit() method, simplifying the process of emitting events by accepting a PortalEvents enum value and any data payload.

Parameters

event

The PortalEvents enum value representing the event to be emitted.

data

The data associated with the event. This can be any type of object.