DeviceInfoService class
Provides static hardware and operating system information about this phone.
A singleton, accessed as DeviceInfoService(). Call init once (done by
SmartPhoneClientManager.configure); after that the fields are set. Used
e.g. to create the Smartphone device registration and by DeviceProbe.
It takes different hardware information from Android and iOS:
Constructors
- DeviceInfoService()
-
factory
Properties
-
deviceData
↔ Map<
String, dynamic> -
The full device info for this device.
See
BaseDeviceInfo.data.getter/setter pair - deviceID ↔ String?
-
Device ID.
getter/setter pair
- deviceManufacturer ↔ String?
-
The manufacturer of the device.
getter/setter pair
- deviceModel ↔ String?
-
Device model.
getter/setter pair
- deviceName ↔ String?
-
Device name.
getter/setter pair
- hardware ↔ String?
-
The name of the hardware.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialized → bool
-
Has the device info been initialized?
no setter
- operatingSystemName ↔ String?
-
The name of the current operating system.
On Android this is the version codename (e.g.
REL).getter/setter pair - operatingSystemVersion ↔ String?
-
The current operating system version.
On Android this is the base OS build.
getter/setter pair
- platform ↔ String?
-
The platform,
AndroidoriOS.nulluntil init has run.getter/setter pair - release ↔ String?
-
Release level. The user-visible version on Android (e.g.
14), the kernel version on iOS.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdk ↔ String?
-
SDK level. The SDK int on Android, the kernel release on iOS.
getter/setter pair
Methods
-
init(
) → Future< void> -
Reads the device info using the
DeviceInfoPlugin. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited