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.crClass Method Summary
Instance Method Summary
- #can_reach(connectable : Gio::SocketConnectable, cancellable : Gio::Cancellable?) : Bool
- #can_reach_async(connectable : Gio::SocketConnectable, cancellable : Gio::Cancellable?, callback : Gio::AsyncReadyCallback?, user_data : Pointer(Void)?) : Nil
- #can_reach_finish(result : Gio::AsyncResult) : Bool
- #connectivity : Gio::NetworkConnectivity
- #network_available : Bool
- #network_available? : Bool
- #network_changed_signal
- #network_metered : Bool
- #network_metered? : Bool
- #to_unsafe
Class Method Detail
Instance Method Detail
def can_reach_async(connectable : Gio::SocketConnectable, cancellable : Gio::Cancellable?, callback : Gio::AsyncReadyCallback?, user_data : Pointer(Void)?) : Nil
#