get_default


Description:

public static unowned NetworkMonitor get_default ()

Gets the default NetworkMonitor for the system.

Some implementations complete their initialization asynchronously: properties such as network_available may start at their default values and update shortly afterwards, with notify emissions, once the state is resolved from the thread-default main context of this first call.

Returns:

a NetworkMonitor, which will be a dummy object if no network monitor is available