Network¶
Non-Visible componentCategory | Requires | Version |
---|---|---|
Connectivity | API 21, Android 5.0 Lollipop | 2 |
Overview¶
A non-visible component that retrieves the internet connection status of the device.
Events¶
On Connect¶
Called when the device connects to a network.
On Disconnect¶
Called when the device disconnects from a network.
Methods¶
Is Connected¶
Returns: Boolean
Returns "True" if the device is connected to a network, "False" otherwise.
Is Fast Connection¶
Returns: Boolean
Returns true if using a fast connection
Is Mobile Connection¶
Returns: Boolean
Returns true if connection is through Mobile
Is Roaming¶
Returns: Boolean
Returns true if using roaming
Is Wifi Connection¶
Returns: Boolean
Returns true if connection is through WiFi
Type¶
Deprecated
Returns: Text
Returns the type of network the device is connected to. e.g. "wifi" or "mobile". This block is deprecated, use the "IsWiFiConnection" and "IsMobileConnection" blocks instead
Last update: November 9, 2022