startBrowsingForPeers method

FutureOr startBrowsingForPeers()

Starts browsing for peers. Searches (by serviceType) for services offered by nearby devices using infrastructure Wi-Fi, peer-to-peer Wi-Fi, and Bluetooth or Ethernet, and provides the ability to easily invite those Device to a earby connections session SessionState.

Implementation

FutureOr<dynamic> startBrowsingForPeers() async {
  await _channel.invokeMethod(_startBrowsingForPeers);
}