コード例 #1
0
        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
ファイル: reachability.cs プロジェクト: kilikdudu/RadarPlus
 static void OnChange(NetworkReachabilityFlags flags)
 {
     ReachabilityChanged?.Invoke(null, EventArgs.Empty);
 }
コード例 #3
0
 void OnRestrictedStateChanged(CTCellularDataRestrictedState state)
 {
     ReachabilityChanged?.Invoke();
 }
コード例 #4
0
        static async void OnChange(NetworkReachabilityFlags flags)
        {
            await Task.Delay(100);

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