addDeviceIntent method

SubscriptionIntent addDeviceIntent(
  1. DeviceChannel channel
)

Implementation

SubscriptionIntent addDeviceIntent(DeviceChannel channel) {
  final intent = _intentRegistry.addDeviceIntent(channel);
  _record(
    SubscriptionIntentTelemetryEvent(
      kind: TelemetryEventKind.subscriptionIntentAdded,
      at: _clock.now(),
    ),
  );
  _maybeSubscribeNow();
  return intent;
}