SmartphoneRegistration
A DeviceRegistration for a Smartphone specifying details of the phone.
Created by the SmartphoneDeviceManager (or Smartphone.createRegistration). Always marked as connected.
Takes inspiration from the device information available via the device_info_plus via the AndroidDeviceInfo and IosDeviceInfo classes.
- Inheritance
-
- Object
- Serializable
- DeviceRegistration
- CamsDeviceRegistration
- HardwareDeviceRegistration
- SmartphoneRegistration
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
SmartphoneRegistration.fromJson
SmartphoneRegistration
- String? deviceId,
- String? deviceDisplayName,
- DateTime? registrationCreatedOn,
- bool isConnected = true,
- BatteryChargingState batteryChargingState = BatteryChargingState.unknown,
- String? hardwareName,
- String? platform,
- String? deviceName,
- String? deviceManufacturer,
- String? deviceModel,
- String? operatingSystem,
- String? sdk,
- String? release,
Properties
deviceManufacturer
Device manufacturer as specified by the OS.
deviceModel
Device model as specified by the OS.
deviceName
Device name as specified by the OS.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
hardware
The hardware type of this device (e.g. 'iPhone7,1' for iPhone 6 Plus).
Not set by the constructor or Smartphone.createRegistration, which use hardwareName instead.
operatingSystem
Name of the operating system as specified by the OS.
platform
The platform type of the device - Android or iOS.
release
The OS release (version).
sdk
The SDK version.
Methods
toJson
Return a JSON encoding of this object.