iOS Guides | Samples

Network.NWPathMonitor Class

Observes a NWPath and allows for monitoring and reacting to changes.

See Also: NWPathMonitor

Syntax

[ObjCRuntime.TV(12, 0)]
public class NWPathMonitor : NativeObject

Requirements

Namespace: Network
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of Network.NWPathMonitor are listed below.

See Also: NativeObject

Public Constructors

Public Methods

Cancel()
Stops monitoring the path.
SetMonitorCanceledHandler(Action)
SetQueue(DispatchQueue)
Specifies the DispatchQueue on which the monitoring should run.
SetUpdatedSnapshotHandler(Action<NWPath>)
Start()
Begins monitoring.