createRegistration method

  1. @override
DefaultDeviceRegistration createRegistration({
  1. String? deviceId,
  2. String? deviceDisplayName,
  3. String? platform,
  4. String? deviceManufacturer,
  5. String? hardware,
  6. String? deviceModel,
  7. 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]'),
);