disconnectFromHotspot method

  1. @override
Future<void> disconnectFromHotspot()
override

Disconnects from the currently connected Wi-Fi Direct hotspot.

Returns a Future that completes when the disconnection process is initiated.

Implementation

@override
Future<void> disconnectFromHotspot() async {
  await methodChannel.invokeMethod('disconnectFromHotspot');
}