createRegistration method

  1. @Deprecated('Use createRegistration on a DeviceManager instead, ' 'which allows for hardware-specific runtime registration options.')
TRegistration createRegistration({
  1. String? deviceId,
  2. String? deviceDisplayName,
})

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

@Deprecated(
  'Use createRegistration on a DeviceManager instead, '
  'which allows for hardware-specific runtime registration options.',
)
TRegistration createRegistration({String? deviceId, String? deviceDisplayName}) =>
    DefaultDeviceRegistration(deviceId: deviceId, deviceDisplayName: deviceDisplayName) as TRegistration;