api/internal/gamification/game_surface library

Classes

GameOpenRequest
The plain input routing calls open a game with: the cached skin file, the chance and skin identity the bridge answers with, and the exactly-once close/failure callbacks. The game is always full screen. Port of iOS GameOpenRequest in GameModels.swift.
GameSettle
How a game settles: against its CEP presentation, or against the rewards page. Mirrors iOS GameSettle.
GameSettlePresentation
A CEP campaign: direct, inline or floating entry.
GameSettleRewards
The rewards widget: settles against the rewards page, not a presentation.
GameSurface
The one open path for every game: direct, entry and rewards games.

Exceptions / Errors

GameOpenAborted
Thrown by a present callback that must not push: the open already settled (watchdog timeout, supersede, or coordination cancel) and GameSurface.open must fail it with reason instead of pushing a route. Never escapes: open catches it and reports the single open failure.