ConnectivityPlugin class
The web implementation of the ConnectivityPlatform of the Connectivity plugin.
- Inheritance
-
- Object
- PlatformInterface
- ConnectivityPlatform
- ConnectivityPlugin
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onConnectivityChanged
→ Stream<
ConnectivityResult> -
Returns a Stream of ConnectivityResults changes.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkConnectivity(
) → Future< ConnectivityResult> -
Checks the connection status of the device.
inherited
-
getLocationServiceAuthorization(
) → Future< LocationAuthorizationStatus> -
Get the current location service authorization (Only on iOS).
override
-
getWifiBSSID(
) → Future< String> -
Obtains the wifi BSSID of the connected network.
override
-
getWifiIP(
) → Future< String> -
Obtains the IP address of the connected wifi network
override
-
getWifiName(
) → Future< String> -
Obtains the wifi name (SSID) of the connected network
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestLocationServiceAuthorization(
{bool requestAlwaysLocationUsage = false}) → Future< LocationAuthorizationStatus> -
Request to authorize the location service (Only on iOS).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
Registrar registrar) → void - Factory method that initializes the connectivity plugin platform with an instance of the plugin for the web.