Skip to main content

Module WebviewLifecycle

Module WebviewLifecycle 

Source
Expand description

Cocoon → webview.setTitle / webview.setIconPath / webview.setHtml / webview.postMessage / webview.updateView / webview.viewState / webview.dispose notifications.

Wire-shape canonicalisation: SkyBridge listeners read named keys (Payload.viewId, Payload.html, Payload.message). Cocoon’s legacy positional [Handle, Value] arrays are projected to named aliases here so every producer shape lands on the same Sky channel. Mirrors the reshape Track/Effect/CreateEffectForRequest/Webview.rs applies on the request path.

Suffix mapping: setHtmlset-html (kebab) to match the typed-RPC channel; other suffixes pass through camelCase.

Functions§

WebviewLifecycle