public void StopListeners() { if (listener == null) { return; } listener.ReachabilityChanged -= Connectivity.OnConnectivityChanged; listener.Dispose(); listener = null; }
public void StartListeners() { listener = new ReachabilityListener(); listener.ReachabilityChanged += Connectivity.OnConnectivityChanged; }