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(); }
static void OnChange(NetworkReachabilityFlags flags) { ReachabilityChanged?.Invoke(null, EventArgs.Empty); }
void OnRestrictedStateChanged(CTCellularDataRestrictedState state) { ReachabilityChanged?.Invoke(); }
static async void OnChange(NetworkReachabilityFlags flags) { await Task.Delay(100); ReachabilityChanged?.Invoke(null, EventArgs.Empty); }