Reputation: 351
I am new to Xamarin, I would like to know how we can obtain current device information in Xamarin Cross-Platform project ? I found System.Configuration API but how to use the same is little bit confusing to me.
Thanks.
Upvotes: 1
Views: 281
Reputation: 4746
You can get basic information from Xamarin.Forms.Device
such as the TargetIdiom
(Phone, Tablet, Desktop), and the OS
(iOS, Android, WinPhone, Windows, Other).
You can get extended device information like screen width, screen height etc if you take a look at XLabs
that exposes more information for the actual device, link here.
Upvotes: 1