enum Gio::NetworkConnectivity

Overview

The host's network connectivity state, as reported by #GNetworkMonitor.

Defined in:

lib/gi-crystal/src/auto/gio-2.0/gio.cr

Enum Members

Local = 1_u32

The host is not configured with a route to the Internet; it may or may not be connected to a local network.

Limited = 2_u32

The host is connected to a network, but does not appear to be able to reach the full Internet, perhaps due to upstream network problems.

Portal = 3_u32

The host is behind a captive portal and cannot reach the full Internet.

Full = 4_u32

The host is connected to a network, and appears to be able to reach the full Internet.

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


[View source]

Instance Method Detail

def full? #

[View source]
def limited? #

[View source]
def local? #

[View source]
def portal? #

[View source]