Gio.NetworkMonitor::network-changed

connect('network-changed', function (networkMonitor, available: Boolean, ): void);
  

Emitted when the network configuration changes. If available is true, then some hosts may be reachable that were not reachable before, while others that were reachable before may no longer be reachable. If available is false, then no remote hosts are reachable.

Since 2.32

networkMonitor

instance of Gio.NetworkMonitor that is emitting the signal

available

the current value of Gio.NetworkMonitor-network-available