check_connectivity


Description:

[ Version ( deprecated = true , deprecated_since = "1.22" ) ]
public ConnectivityState check_connectivity (Cancellable? cancellable = null) throws Error

Warning: check_connectivity is deprecated since 1.22.

Updates the network connectivity state and returns the (new) current state.

Note:

Use check_connectivity_async or GDBusConnection.

Contrast get_connectivity, which returns the most recent known state without re-checking.

This is a blocking call; use check_connectivity_async if you do not want to block.

Parameters:

this

an Client

cancellable

a Cancellable

Returns:

the (new) current connectivity state