SystemConfiguration.NetworkReachability Class
Used to detect the reachability of the network and to get notifications on network reachability changes.

See Also: NetworkReachability Members

Syntax

public class NetworkReachability : ObjCRuntime.INativeObject, IDisposable

Remarks

You instantiate this class with a hostname or an IP address, and then use the TryGetFlags to get the reachability status. If you want to be notified of changes in the reachability of the specified host, you can use the SetCallback and Schedule methods.

You can detect the ad-hoc WiFi network using the IP address 169.254.0.0 and the general network availability with 0.0.0.0.

Related content

Requirements

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