check_connectivity_async


Description:

public async ConnectivityState check_connectivity_async (Cancellable? cancellable) throws Error

Asynchronously updates the network connectivity state and invokes callback when complete.

Contrast get_connectivity, which (immediately) returns the most recent known state without re-checking, and check_connectivity, which blocks.

Parameters:

this

an Client

cancellable

a Cancellable

callback

callback to call with the result

user_data

data for callback.