GameDeviceInfo class final
The device object sent in init, plus the subset pushed on device
updates. Every fact degrades to a safe default; collection never throws.
Constructors
-
GameDeviceInfo({required String osVersion, required String sdkVersion, required String model, required String locale, required String timezone, required bool hapticsAllowed, required bool soundAllowed, required bool reducedMotion, required String tier, required int ramMb, required int cores, required String thermal, required bool lowPower, required List<
String> sensors}) -
const
Properties
- cores → int
-
final
- hapticsAllowed → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale → String
-
final
- lowPower → bool
-
final
- model → String
-
final
- osVersion → String
-
final
- ramMb → int
-
final
- reducedMotion → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdkVersion → String
-
final
-
sensors
→ List<
String> -
final
- soundAllowed → bool
-
final
- thermal → String
-
final
- tier → String
-
final
- timezone → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pushChangedSince(
GameDeviceInfo previous) → bool -
Whether a fresh sample would change the last pushed
devicepayload. -
pushJson(
) → Map< String, Object?> -
The
devicepush payload: only the facts that change mid-session. -
toJson(
) → Map< String, Object?> -
The
deviceobject ofinit. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
collect(
String sdkVersion) → Future< GameDeviceInfo> -
Collects the facts from the plugin (
gameDeviceFacts). A missing plugin or any failure degrades each fact to its default. Never throws.