startAdvertisingPeer method

FutureOr startAdvertisingPeer()

Begins advertising the service provided by a local peer. The startAdvertisingPeer publishes an advertisement for a specific service that your app provides through the flutter_nearby_connections plugin and notifies its delegate about invitations from nearby peers.

Implementation

FutureOr<dynamic> startAdvertisingPeer() async {
  await _channel.invokeMethod(_startAdvertisingPeer);
}