Gio.NetworkMonitor.prototype.get_network_available
function get_network_available(): Boolean { // Gjs wrapper for g_network_monitor_get_network_available() }
Checks if the network is available. "Available" here means that the system has a default route available for at least one of IPv4 or IPv6. It does not necessarily imply that the public Internet is reachable. See Gio.NetworkMonitor-network-available for more details.
Since 2.32
- Returns
whether the network is available