Accesses the network path the connection is using.
SDKs
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
- watchOS 5.0+
Framework
- Network
Declaration
nw _path _t nw_connection_copy_current_path(nw _connection _t connection);
Accesses the network path the connection is using.
SDKs
Framework
nw _path _t nw_connection_copy_current_path(nw _connection _t connection);
nw _connection _set _path _changed _handler
Sets a handler that receives network path updates.
nw _connection _path _event _handler _t
A handler that delivers network path updates.
nw _connection _set _viability _changed _handler
Sets a handler that receives updates when data can be sent and received.
nw _connection _set _better _path _available _handler
Sets a handler that receives updates when an alternative network path is preferred over the current path.
nw _connection _boolean _event _handler _t
A handler that receives Boolean state updates from a connection, such as viability and better path state.