Expand description
day-piece-webview — an EXTERNAL Day Piece (DESIGN.md §15) wrapping each toolkit’s NATIVE web view:
WKWebView on AppKit/UIKit, QWebEngineView on Qt, android.webkit.WebView on Android. One Rust API
registered link-time into each backend’s renderer slice without touching day. Alongside the
picker it’s a reference for pieces that carry both a front-end AND their own native backend — here
including an Android manifest permission contribution (INTERNET), see docs/extending.md.
The view is a growing leaf that fills its space. Navigation is imperative and modeled with Copy
Triggers — .go() loads the bound URL, .back()/.forward()/.stop()/.reload() drive
history — each watched to a WebPatch. The bound URL is two-way: .go() loads it, and native
navigation reports the current URL back so a bound text field follows along.
Structs§
- WebProps
- Full props (realize). The initial
urlis loaded when the native view is created. - WebView
- A native web view bound to
url. Attach command triggers with.go()/.back()/.forward()/ .stop()/.reload(); fire them (Trigger::notify) from buttons.
Enums§
- WebPatch
- Sparse imperative commands sent to the native view after creation.
Constants§
Functions§
- web_
view web_view(url)— a native web view showingurl. The initial value loads on creation; call.go(trigger)and fire the trigger to (re)load whateverurlcurrently holds.