Type Alias

nw_path_monitor_t

An observer that you use to monitor and react to network changes.

Declaration

typedef NSObject<OS_nw_path_monitor> *nw_path_monitor_t;

Topics

Creating Path Monitors

nw_path_monitor_create

Initializes a path monitor to observe all available interface types.

nw_path_monitor_create_with_type

Initializes a path monitor to observe a specific interface type.

nw_path_monitor_set_queue

Sets a queue on which to deliver path events.

nw_path_monitor_start

Starts monitoring path changes.

Handling Path Updates

nw_path_monitor_set_update_handler

Sets a handler to receive network path updates.

nw_path_monitor_update_handler_t

A handler that delivers network path updates.

Canceling Path Monitors

nw_path_monitor_cancel

Stops receiving network path updates.

nw_path_monitor_set_cancel_handler

Sets a handler to determine when a monitor is fully cancelled and will no longer deliver events.

nw_path_monitor_cancel_handler_t

A handler that indicates when a monitor has been cancelled.

See Also

Paths and Interfaces

nw_path_t

An object that contains information about the properties of the network that a connection uses, or that are available to your app.

nw_interface_t

An interface that a network connection uses to send and receive data.