getConnectedDeviceStream method
- @Deprecated('Use getConnectedDeviceStreamById instead')
- 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);
}