<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_path_monitor_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@T@nw_path_monitor_t"
  },
  "title" : "nw_path_monitor_t"
}
-->

# nw_path_monitor_t

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

```
typealias nw_path_monitor_t = any OS_nw_path_monitor
```

## Topics

### Creating Path Monitors

[`func nw_path_monitor_create() -> nw_path_monitor_t`](/documentation/Network/nw_path_monitor_create())

Initializes a path monitor to observe all available interface types.

[`func nw_path_monitor_create_with_type(nw_interface_type_t) -> nw_path_monitor_t`](/documentation/Network/nw_path_monitor_create_with_type(_:))

Initializes a path monitor to observe a specific interface type.

[`func nw_path_monitor_prohibit_interface_type(nw_path_monitor_t, nw_interface_type_t)`](/documentation/Network/nw_path_monitor_prohibit_interface_type(_:_:))

Prohibit a path monitor from using a specific interface type.

[`func nw_path_monitor_set_queue(nw_path_monitor_t, dispatch_queue_t)`](/documentation/Network/nw_path_monitor_set_queue(_:_:))

Sets a queue on which to deliver path events.

[`func nw_path_monitor_start(nw_path_monitor_t)`](/documentation/Network/nw_path_monitor_start(_:))

Starts monitoring path changes.

### Handling Path Updates

[`func nw_path_monitor_set_update_handler(nw_path_monitor_t, nw_path_monitor_update_handler_t)`](/documentation/Network/nw_path_monitor_set_update_handler(_:_:))

Sets a handler to receive network path updates.

[`typealias nw_path_monitor_update_handler_t`](/documentation/Network/nw_path_monitor_update_handler_t)

A handler that delivers network path updates.

### Canceling Path Monitors

[`func nw_path_monitor_cancel(nw_path_monitor_t)`](/documentation/Network/nw_path_monitor_cancel(_:))

Stops receiving network path updates.

[`func nw_path_monitor_set_cancel_handler(nw_path_monitor_t, nw_path_monitor_cancel_handler_t)`](/documentation/Network/nw_path_monitor_set_cancel_handler(_:_:))

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

[`typealias nw_path_monitor_cancel_handler_t`](/documentation/Network/nw_path_monitor_cancel_handler_t)

A handler that indicates when a monitor has been cancelled.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)