createHotspot method

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

Initiates the creation of a Wi-Fi Direct group (hotspot) on the native side.

Listen to streamHotspotInfo for state updates including SSID, PSK, and IP address. Returns a Future that completes when the creation process is initiated.

Implementation

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