asaf
asaf

Reputation: 976

xamarin.forms getting the internet type and quality

Is there a way to know in Xamarin.Forms, if the internet type is 2G / 3G / 4G ?

I also need to know the internet quality (meaning BER - bit error rate so far)

Upvotes: 1

Views: 309

Answers (1)

Gerald Versluis
Gerald Versluis

Reputation: 34103

You can use James Montemagno's Connectivity plugin for this. With it, you can check if you have an internet connection as a whole. Also, it exposes a property IEnumerable<ConnectionType> ConnectionTypes { get; } by which you should be able to determine the type of connection you have available.

I don't think it's that much advanced that you can get error rates and such, but this should be a great starting point. Maybe you can extend it yourself and open a PR!

Upvotes: 1

Related Questions