public static LocalWifiConnectionStatus ( ) : NetworkStatus | ||
Результат | NetworkStatus |
public void UpdateStatus(object sender, EventArgs e) { remoteHostStatus = Reachability.RemoteHostStatus(); internetStatus = Reachability.InternetConnectionStatus(); localWifiStatus = Reachability.LocalWifiConnectionStatus(); OnStatusChanged?.Invoke(this, e); }
void UpdateStatus() { remoteHostStatus = Reachability.RemoteHostStatus(); internetStatus = Reachability.InternetConnectionStatus(); localWifiStatus = Reachability.LocalWifiConnectionStatus(); tableView.ReloadData(); }
/// <summary> /// Determines if is wifi on. /// </summary> /// <returns><c>true</c> if is wifi on; otherwise, <c>false</c>.</returns> public static bool IsWifiOn() { bool returnValue = false; var localWifiStatus = Reachability.LocalWifiConnectionStatus(); if (localWifiStatus == NetworkStatus.ReachableViaWiFiNetwork) { returnValue = true; } return(returnValue); }
void updateInternetStatus() { try { remoteHostStatus = Reachability.RemoteHostStatus(); internetStatus = Reachability.InternetConnectionStatus(); localWifiStatus = Reachability.LocalWifiConnectionStatus(); } catch (Exception ex) { Debug.WriteLine("Exception In LoginViewController: updateInternetStatus: " + ex.Message); } }
public override void WillTerminate(UIApplication application) { // Called when the application is about to terminate. Save data, if needed. See also DidEnterBackground. try { if (ion.dataLogManager.isRecording) { var done = ion.dataLogManager.StopRecording().Result; } if (!ion.preferences.portal.rememberMe) { ion.preferences.portal.userId = -1; ion.preferences.portal.username = ""; ion.preferences.portal.password = ""; } if (Reachability.LocalWifiConnectionStatus() == NetworkStatus.ReachableViaWiFiNetwork) { try { Log.UploadLogs(); } catch (Exception ee) { Log.E(this, "Failed to upload logs", ee); } } if (ion is RemoteIosION) { var remote = ion as RemoteIosION; ion.portal.LogoutAsync().Wait(); } else { ion.SaveWorkbenchAsync().Wait(); } ion.Dispose(); } catch (Exception e) { Log.E(this, "Failed to terminate ion instance", e); } }