PlatformContextProperties class

Overrides for the values for properties of the platform context. Only available on mobile apps (Android and iOS), not on Web.

Annotations

Constructors

PlatformContextProperties({String? osType, String? osVersion, String? deviceVendor, String? deviceModel, String? carrier, NetworkType? networkType, String? networkTechnology, String? appleIdfa, String? appleIdfv, int? availableStorage, int? totalStorage, int? physicalMemory, int? appAvailableMemory, int? batteryLevel, BatteryState? batteryState, bool? lowPowerMode, bool? isPortrait, String? resolution, double? scale, String? language, String? androidIdfa, int? systemAvailableMemory, String? appSetId, AppSetIdScope? appSetIdScope})
const

Properties

androidIdfa String?
Advertising identifier on Android (Android only).
final
appAvailableMemory int?
Amount of memory in bytes available to the current app (iOS only).
final
appleIdfa String?
Advertising identifier on iOS (iOS only).
final
appleIdfv String?
UUID identifier for vendors on iOS (iOS only).
final
appSetId String?
Android vendor ID scoped to the set of apps published under the same Google Play developer account (see https://developer.android.com/training/articles/app-set-id) (Android only).
final
appSetIdScope AppSetIdScope?
Scope of the appSetId. Can be scoped to the app or to a developer account on an app store (all apps from the same developer on the same device will have the same ID) (Android only).
final
availableStorage int?
Bytes of storage remaining.
final
batteryLevel int?
Remaining battery level as an integer percentage of total battery capacity.
final
batteryState BatteryState?
Battery state for the device.
final
carrier String?
The carrier of the SIM inserted in the device.
final
deviceModel String?
The end-user-visible name for the end product.
final
deviceVendor String?
The manufacturer of the product/hardware.
final
hashCode int
The hash code for this object.
no setterinherited
isPortrait bool?
A Boolean indicating whether the device orientation is portrait (either upright or upside down).
final
language String?
System language currently used on the device (ISO 639).
final
lowPowerMode bool?
A Boolean indicating whether Low Power Mode is enabled (iOS only).
final
networkTechnology String?
Radio access technology that the device is using.
final
networkType NetworkType?
Type of network the device is connected to.
final
osType String?
Operating system type (e.g., ios, tvos, watchos, osx, android).
final
osVersion String?
The current version of the operating system.
final
physicalMemory int?
Total physical system memory in bytes.
final
resolution String?
Screen resolution in pixels. Arrives in the form of WIDTHxHEIGHT (e.g., 1200x900). Doesn't change when device orientation changes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double?
Scale factor used to convert logical coordinates to device coordinates of the screen (uses UIScreen.scale on iOS).
final
systemAvailableMemory int?
Available memory on the system in bytes (Android only).
final
totalStorage int?
Total size of storage in bytes.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited