Iphone monotouch detects that there is an internet connection

In Monotouch on iPhone / iPod, how to determine if there is Internet access?

+3
source share
1 answer

The best way right now is to use this class from the Miguel de Icaza GitHub repository:

https://github.com/xamarin/monotouch-samples/blob/master/ReachabilitySample/reachability.cs

Its a static class with many methods, so all you have to do is add it to your project and call, for example:

NetworkStatus status = Reachability.InternetConnectionStatus();
+9
source

Source: https://habr.com/ru/post/1733057/


All Articles