예제 #1
0
        public void StopListeners()
        {
            if (listener == null)
            {
                return;
            }

            listener.ReachabilityChanged -= Connectivity.OnConnectivityChanged;
            listener.Dispose();
            listener = null;
        }
예제 #2
0
 public void StartListeners()
 {
     listener = new ReachabilityListener();
     listener.ReachabilityChanged += Connectivity.OnConnectivityChanged;
 }