PluginWifiConnect class

Constructors

PluginWifiConnect()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

isEnabled Future<bool>
The isEnabled method returns true if WiFi is enabled. The method only works on android.
no setter
ssid Future<String?>
The ssid getter returns the currently connected ssid.
no setter

Static Methods

activateWifi() Future
The activateWifi method turns on WiFi only works on android.
connect(String ssid, {bool saveNetwork = false}) Future<bool?>
The connect method attempts to connect to wifi matching explicitly the ssid parameter.
connectByPrefix(String ssidPrefix, {bool saveNetwork = false}) Future<bool?>
The connectByPrefix method attempts to connect to the nearest wifi network with the ssid prefix matching the ssidPrefix parameter.
connectToSecureNetwork(String ssid, String password, {bool isWep = false, bool isWpa3 = false, bool saveNetwork = false}) Future<bool?>
The connectToSecureNetwork method attempts to connect to wifi matching explicitly the ssid parameter. This will fail if the password doesn't match or the isWep parameter isn't set correctly. Android does not support WEP Networks.
connectToSecureNetworkByPrefix(String ssidPrefix, String password, {bool isWep = false, bool isWpa3 = false, bool saveNetwork = false}) Future<bool?>
The connectToSecureNetworkByPrefix method attempts to connect to the nearest wifi network with the ssid prefix matching the ssidPrefix parameter. This will fail if the password doesn't match or the isWep parameter isn't set correctly. Android does not support WEP Networks.
deactivateWifi() Future
The deactivateWifi method turns off wifi only works on android.
disconnect() Future<bool?>
The disconnect method disconnects from the wifi network if the network was connected to using one of the connect methods.
register() Future
register wifi network
unregister() Future
unregister wifi network