SmartphoneRegistration constructor
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,
Implementation
SmartphoneRegistration({
super.deviceId,
String? deviceDisplayName,
super.registrationCreatedOn,
super.isConnected = true, // A smartphone is always connected.
super.batteryChargingState,
super.hardwareName,
this.platform,
this.deviceName,
this.deviceManufacturer,
this.deviceModel,
this.operatingSystem,
this.sdk,
this.release,
}) : super(
deviceDisplayName:
deviceDisplayName ??
((Platform.isAndroid)
? '$platform (${deviceManufacturer?.toUpperCase()}) - $deviceModel [SDK: $sdk]'
: '$platform - $hardwareName [SDK: $sdk]'),
);