コード例 #1
0
    /// <summary>
    /// When connectivity changes
    /// </summary>
    /// <param name="e"></param>
    protected virtual void OnConnectivityChanged(ConnectivityChangedEventArgs e)
    {
      if (ConnectivityChanged == null)
        return;

      ConnectivityChanged(this, e);
    }
コード例 #2
0
		private void UpdateNetworkInfo(object sender, ConnectivityChangedEventArgs e)
		{
			if (CrossConnectivity.Current != null && CrossConnectivity.Current.ConnectionTypes != null)
			{
				var connectionType = CrossConnectivity.Current.ConnectionTypes.FirstOrDefault();
				ConnectionDetails.Text = connectionType.ToString();
			}
		}
コード例 #3
0
        /// <summary>
        /// When connectivity changes
        /// </summary>
        /// <param name="e"></param>
        protected virtual void OnConnectivityChanged(ConnectivityChangedEventArgs e)
        {
            if (ConnectivityChanged == null)
            {
                return;
            }

            ConnectivityChanged(this, e);
        }
コード例 #4
0
		protected virtual void handleNetworkConnectionChanged (object sender, ConnectivityChangedEventArgs e)
		{
			IsNetworkAvailable = e.IsConnected;
		}