Sets a handler that receives updates when an alternative network path is preferred over the current path.
SDKs
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
- watchOS 5.0+
Framework
- Network
Declaration
void nw_connection_set_better_path_available_handler(nw _connection _t connection, nw _connection _boolean _event _handler _t handler);