async void OnChange(NetworkReachabilityFlags flags)
        {
            // Add in artifical delay so the connection status has time to change
            // else it will return true no matter what.
            await Task.Delay(100);

            ReachabilityChanged?.Invoke();
        }
示例#2
0
 static void OnChange(NetworkReachabilityFlags flags)
 {
     ReachabilityChanged?.Invoke(null, EventArgs.Empty);
 }
 void OnRestrictedStateChanged(CTCellularDataRestrictedState state)
 {
     ReachabilityChanged?.Invoke();
 }
示例#4
0
        static async void OnChange(NetworkReachabilityFlags flags)
        {
            await Task.Delay(100);

            ReachabilityChanged?.Invoke(null, EventArgs.Empty);
        }