getConnectedDeviceStream method

  1. @Deprecated('Use getConnectedDeviceStreamById instead')
Stream<NearbyDevice?> getConnectedDeviceStream(
  1. NearbyDevice device
)

Returns the constantly updating NearbyDevice you are currently connected to. If it returns null, then there is no connection at the moment.

Implementation

@Deprecated('Use getConnectedDeviceStreamById instead')
Stream<NearbyDevice?> getConnectedDeviceStream(NearbyDevice device) {
  return NearbyServicePlatform.instance.getConnectedDeviceStream(device);
}