createRegistration method
DefaultDeviceRegistration
createRegistration({
- String? deviceId,
- String? deviceDisplayName,
- String? platform,
- String? deviceManufacturer,
- String? hardware,
- String? deviceModel,
- String? sdk,
override
Create a DeviceRegistration which can be used to configure this device for deployment.
Override this method to configure device-specific registration options, if any.
Implementation
@override
DefaultDeviceRegistration createRegistration({
String? deviceId,
String? deviceDisplayName,
String? platform,
String? deviceManufacturer,
String? hardware,
String? deviceModel,
String? sdk,
}) => DefaultDeviceRegistration(
deviceId: deviceId,
deviceDisplayName:
deviceDisplayName ??
((Platform.isAndroid)
? '$platform (${deviceManufacturer?.toUpperCase()}) - $deviceModel [SDK: $sdk]'
: '$platform - $hardware [SDK: $sdk]'),
);