GameWindowStats class
What one game window did, for its analytics: the latest chance, how many
/play requests the skin sent (for play vs play_again), how many
plays returned an outcome, the last refusal, and how long the game was
visible. Port of Android GameWindowStats (iOS GameWindowStats).
Constructors
- GameWindowStats(String openChanceId, [int clock()?])
Properties
- chanceId → String
-
The window's latest chance: the one it opened with, then the chance the
last
state,playorpeeknamed.statenames the chance the game will actually play (an older unplayed one can win over a fresh grant); play next moves it. The answer'schanceIdwins; the play answer has none today, so the skin's request body supplies it.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- playRefused → String
-
The latest
refusedreason fromplayorpeek; empty when none was refused.no setter - plays → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dwellMs(
) → int - Foreground-visible time since start, including the current visible stretch.
-
nextPlayNumber(
) → int -
Counts one
/playrequest and returns its 1-based number in this window. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordHttp(
String path, Map< String, dynamic> ? request, Map<String, dynamic> ? response) → void -
One
httpanswer:requestis the skin's request body,responsethe raw{isSuccess, data:{response}}envelope. -
setForeground(
bool value) → void -
start(
) → void - The game first showed: dwell starts counting. Later calls are ignored.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited