Android device identifier library
Some years ago I wrote a handy library Get iOS Model that I open-sourced on Github and through the years I’ve been asked if I would ever create an Xamarin.Android version. Finally got around to it and made it available this week.
The package consists of 18,554 Android devices that support Google Play which I will update regularly.
Using the package is pretty simple:
- Install the nuget package dannycabrera.GetDroidModel
- Make a call to:
Example: Device model “SM-G960F” will return as “Galaxy S9”.
If you prefer having the manufacturer’s name returned call:
GetDroidModel.DeviceHardware.Model(defaultValue: “Unknown”, includeManufacturer: true);
Example: Device model “SM-G960F” will return as “Samsung Galaxy S9”.
Hope this is a useful library/plugin for all.