Table of Contents

Interface NetworkMonitor

Namespace
Gio
Assembly
Gio-2.0.dll
public interface NetworkMonitor : IHandle
Inherited Members

Fields

ConnectivityPropertyDefinition

public static readonly Property<NetworkConnectivity, NetworkMonitor> ConnectivityPropertyDefinition

Field Value

Property<NetworkConnectivity, NetworkMonitor>

NetworkAvailablePropertyDefinition

public static readonly Property<bool, NetworkMonitor> NetworkAvailablePropertyDefinition

Field Value

Property<bool, NetworkMonitor>

NetworkMeteredPropertyDefinition

public static readonly Property<bool, NetworkMonitor> NetworkMeteredPropertyDefinition

Field Value

Property<bool, NetworkMonitor>

Properties

Connectivity

NetworkConnectivity Connectivity { get; }

Property Value

NetworkConnectivity

NetworkAvailable

bool NetworkAvailable { get; }

Property Value

bool

NetworkMetered

bool NetworkMetered { get; }

Property Value

bool

Methods

CanReach(SocketConnectable, Cancellable?)

[Version("2.32")]
bool CanReach(SocketConnectable connectable, Cancellable? cancellable)

Parameters

connectable SocketConnectable
cancellable Cancellable

Returns

bool

CanReachFinish(AsyncResult)

bool CanReachFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

GetConnectivity()

[Version("2.44")]
NetworkConnectivity GetConnectivity()

Returns

NetworkConnectivity

GetNetworkAvailable()

[Version("2.32")]
bool GetNetworkAvailable()

Returns

bool

GetNetworkMetered()

[Version("2.46")]
bool GetNetworkMetered()

Returns

bool