Skip to main content

Interface: EventMetadata

Describes a controller method bound to a runtime event, including its type, handler name, parameters to inject, and an optional WebView identifier.

Properties​

methodName​

methodName: string

The name of the controller method that will be invoked when the event fires.


name​

name: string

The name of the event, used to match against emitted event names.


params​

params: MethodParameter[]

Metadata for each parameter of the handler method, indicating how to resolve its value at runtime (payload, specific property, player, etc.).


type​

type: EventType

The type of event this handler listens for (e.g., ON, ON_CLIENT, ON_SERVER).


webViewId?​

optional webViewId: string | number

Optional identifier for targeting a specific WebView instance when the event originates from a WebView context.