Example #1
0
 public Task <bool> IsReachable(string host, TimeSpan timeout)
 {
     return(Task <bool> .Run(() => Reachability.IsHostReachable(host)));
 }
Example #2
0
 public Task <bool> IsReachableByWifi(string host, TimeSpan timeout)
 {
     return(Task <bool> .Run(() => Reachability.RemoteHostStatus(host) == NetworkStatus.ReachableViaWiFiNetwork));
 }
Example #3
0
        public Xamarin.Forms.Labs.Services.NetworkStatus InternetConnectionStatus()
        {
            var status = Reachability.InternetConnectionStatus();

            return((NetworkStatus)Enum.Parse(typeof(NetworkStatus), status.ToString()));
        }
Example #4
0
 public NetworkStatus InternetConnectionStatus()
 {
     return(Reachability.InternetConnectionStatus());
 }