api/internal/gamification/game_container_view
library
Classes
-
GameChrome
-
The fixed close/mute geometry, not configurable: each control is a
circle inside a hitBox, the close circle sits top below the top safe
inset and trailing in from the right one, and the mute circle sits gap
to its left. Port of iOS GameChrome.
-
GameCloseButton
-
The native close control: a 36pt translucent-black circle with an 18pt
white X inside a 48pt hit box. Same geometry as the Android game close
button. Port of iOS
GameCloseButton.
-
GameContainerView
-
The game surface: always full screen and transparent. It is presented only
after the skin sends
ready, so there is no loading state: the skin and
the native close button animate in together (fade + scale 0.94→1, 240ms
ease-out) and out on close (180ms ease-in) before the cover is removed.
Taps pass through to the host app until the skin is ready; reduced motion
removes the animation and the scale.
-
GameMotion
-
Shared motion numbers; identical to iOS (
GAME_OPEN_MS, GAME_EXIT_MS,
GAME_START_SCALE) and Android. Reduced motion removes the animation and
the scale. Port of iOS GameMotion.
-
GameMuteButton
-
The native sound toggle, left of the close button; same geometry.
Port of iOS
GameMuteButton.
-
GameOrientationLock
-
Locks the device orientation while a game is open, and restores it on
close. The game freezes to whatever orientation it opened in (portrait or
landscape); closing restores the system default (all orientations), so a
host with its own global lock should re-apply it after the game.
Port of the orientation freeze in iOS
GamePresenter and Android
GamificationRenderer. Never throws.
-
GameSafeArea
-
Safe-area insets in CSS px, as sent in
init.safeArea.