module Gio::NetworkMonitor

Overview

#GNetworkMonitor provides an easy-to-use cross-platform API for monitoring network connectivity. On Linux, the available implementations are based on the kernel's netlink interface and on NetworkManager.

There is also an implementation for use inside Flatpak sandboxes.

Defined in:

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

Class Method Summary

Instance Method Summary

Class Method Detail

def self.default : Gio::NetworkMonitor #

def self.g_type : UInt64 #

Instance Method Detail

def can_reach(connectable : Gio::SocketConnectable, cancellable : Gio::Cancellable?) : Bool #

def can_reach_async(connectable : Gio::SocketConnectable, cancellable : Gio::Cancellable?, callback : Gio::AsyncReadyCallback?, user_data : Pointer(Void)?) : Nil #

def can_reach_finish(result : Gio::AsyncResult) : Bool #

def connectivity : Gio::NetworkConnectivity #

def network_available : Bool #

def network_available? : Bool #

def network_changed_signal #

def network_metered : Bool #

def network_metered? : Bool #

abstract def to_unsafe #