Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of how to Check Internet Connection in Xamarin.Forms applications - http://julianocustodio.com/check-internet
using System;
using Plugin.Connectivity;
using Xamarin.Forms;
namespace DemoCheckInternet
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
public void VerifyInternet(object sender, EventArgs e)
{
Status.Text = CrossConnectivity.Current.IsConnected ? "Connected" : "Disconnected";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment