I am work in Xamarin
. And now I want to get the current type of network in Xamarin.iOS
.Such as 4G,3G,wifi
...
I am new in Xamarin
. Any suggestion would be useful
I am work in Xamarin
. And now I want to get the current type of network in Xamarin.iOS
.Such as 4G,3G,wifi
...
I am new in Xamarin
. Any suggestion would be useful
To get connected network type use
CTTelephonyNetworkInfo
class like thisPossibles values defined which you will get are as follows :
CTRadioAccessTechnologyGPRS
,CTRadioAccessTechnologyEdge
,CTRadioAccessTechnologyWCDMA
,CTRadioAccessTechnologyLTE
etcYou can grab this
Reachability
class which comes from an iOS sample: https://github.com/xamarin/ios-samples/blob/master/ReachabilitySample/reachability.csThen you can get the connection status with:
You can get notified for changes with: