api/internal/gamification/game_web_view_host
library
Classes
-
GameCrashKillSwitch
-
In-memory kill switch per skin version: after the platform reports the web
process dying for a skin version (noteCrash), opens of that version fail
fast with
render_error instead of showing a game that cannot run. The
process-death signal arrives from the host platform channel when it
supports one (webview_flutter surfaces no render-process callback, so
until then the switch stays open and deaths degrade to
bundle_load_failed through the resource-error path). Cleared on logout.
-
GameWebViewHost
-
Hosts one skin in a transparent web view: loads the cached bundle with the
skin CSP, wires the
digia channel to GameBridgeSession, arms the load
and ready timers, blocks navigation outside the bundle folder, and pushes
viewport, device and lifecycle changes. Port of iOS GameWebViewHost.
Constants
-
gameJavaScriptChannel
→ const String
-
The JavaScript channel the skin posts every bridge message on.
-
gameSelectionCss
→ const String
-
Selection and the long-press callout stay off everywhere except text
inputs. Same string as Android
GAME_SELECTION_CSS and iOS
GameWebViewHost.selectionStyle.
-
gameSelectionCssLiteral
→ const String
-
The selection CSS as a JS single-quoted string literal.
-
gameSelectionScript
→ const String
-
Appends the selection lockdown once the DOM exists. A fixed id keeps it to
one tag even if the page finishes twice. Port of Android
GAME_SELECTION_SCRIPT (iOS injects the same CSS at document end).