Skip to content

DeviceInformation

Hardware and operating system information about the phone.

Collected by DeviceProbe for the DeviceSamplingPackage.DEVICE_INFORMATION measure, using DeviceInfoService.

More information on the data from Android and iOS are available at:

Inheritance
Annotations

Constructors

DeviceInformation.fromJson

DeviceInformation.fromJson(
  1. Map<String, dynamic> json
)

DeviceInformation

DeviceInformation({
  1. Map<String, dynamic> deviceData = const {},
  2. String? platform,
  3. String? deviceId,
  4. String? deviceName,
  5. String? deviceModel,
  6. String? deviceManufacturer,
  7. String? operatingSystem,
  8. String? hardware,
})

Properties

deviceData

Map<String, dynamic> deviceData
getter/setter pair

The full, platform-specific device info as returned by the device_info_plus plugin.

deviceId

String? deviceId
getter/setter pair

The device ID, see DeviceInfoService.deviceID. On iOS this is unique per device and app vendor, and changes if the app is reinstalled or the device is reset.

deviceManufacturer

String? deviceManufacturer
getter/setter pair

Device manufacturer as specified by the OS.

deviceModel

String? deviceModel
getter/setter pair

Device model as specified by the OS.

deviceName

String? deviceName
getter/setter pair

Device name as specified by the OS.

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

hardware

String? hardware
getter/setter pair

The hardware type of this device (e.g. 'iPhone7,1' for iPhone 6 Plus).

operatingSystem

String? operatingSystem
getter/setter pair

Device OS as specified by the OS.

platform

String? platform
getter/setter pair

The platform type of the device.

  • Android
  • iOS

release

String? release
getter/setter pair

The OS release.

sdk

String? sdk
getter/setter pair

The SDK version.

Methods

equivalentTo

bool equivalentTo(
  1. Data other
)
override

Returns true if the deviceId is equal.

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.