NwPathState

constructor(status: NwPathStatus, interfaces: Set<NwInterfaceType>, isExpensive: Boolean, isConstrained: Boolean, unsatisfiedReason: NwUnsatisfiedReason?)

Parameters

status

the overall reachability NwPathStatus.

interfaces

which physical interface types the path currently uses (Wi-Fi / cellular / wired…). Wi-Fi is disambiguated into infrastructure (NwInterfaceType.WifiLan) vs peer-to-peer (NwInterfaceType.WifiDirect, AWDL/low-latency Wi-Fi) by the BSD interface-name heuristic in classifyWifiInterface (#1554), so this now feeds the seam's live capability ROLES, not just telemetry.

isExpensive

the OS flags the path as expensive (e.g. cellular, personal hotspot).

isConstrained

the OS flags the path as constrained (Low Data Mode).

unsatisfiedReason

when status is NwPathStatus.Unsatisfied, why — including NwUnsatisfiedReason.LocalNetworkDenied, the Local-Network-permission signal. null otherwise.