ui/web
10/22/22Less than 1 minute
Bridge types for WebView UIs: IPC events, script invocation, and the typed handler for invoke requests from the page.
Table of contents
Interfaces
Types
Types
InvokeRequestHandler
InvokeRequestHandler: (event: InvokeEvent, ...args: any[]) => any | Promise<any>
Callback invoked when the web layer calls into your host script through the bridge.
Type declaration
(event, ...args): any | Promise<any>
Parameters
| Name | Type | Description |
|---|---|---|
event | InvokeEvent | Metadata for this invocation. |
...args | any | Positional arguments supplied by the page. |
Returns
any | Promise<any>
Sync or async result returned to the web caller.
