ref_network_monitor


Description:

[ Version ( since = "3.22" ) ]
public NetworkMonitor ref_network_monitor ()

References a NetworkMonitor instance, which had been previously set by set_network_monitor.

If none is set, then the default NetworkMonitor is returned, as provided by get_default. The returned pointer is referenced for thread safety, unref it with unref when no longer needed.

Parameters:

this

a Session

Returns:

A referenced NetworkMonitor instance to use for network availability tests.




2022 vala-language.org