getWiFiAPState static method
Returns the WiFi AP State
0 = WIFI_AP_STATE_DISABLING
1 = WIFI_AP_STATE_DISABLED
2 = WIFI_AP_STATE_ENABLING
3 = WIFI_AP_STATE_ENABLED
4 = WIFI_AP_STATE_FAILED
Implementation
@Deprecated("This is will only work with < Android SDK 26.")
static Future<int?> getWiFiAPState() async {
final Map<String, String> htArguments = Map();
int? iResult;
try {
iResult = await _channel.invokeMethod('getWiFiAPState', htArguments);
} on MissingPluginException catch (e) {
print("MissingPluginException : ${e.toString()}");
}
return iResult;
}