Skip to content

adamzucchi/Get-iOS-Model

 
 

Repository files navigation

Get-iOS-Model

Get the iOS model using the hw.machine string


Will keep repository updated as new devices become available.

If you need an Android library check out my other repo https://github.com/dannycabrera/GetDroidModel.

Updates:
11/06/2018 - Added new iPad models: iPad Pro 12.9-inch (3rd generation) and iPad Pro 11-inch
09/21/2018 - Added new iPhone models: iPhone XR, iPhone Xs and iPhone Xs Max
03/30/2018 - Added Apple Tech specs link for iPad 6th generation
03/28/2018 - Added new iPad 6th generation (2018 9.7-inch model)
09/29/2017 - Model info now returned on simulators & updated Nuget to v1.3.
09/19/2017 - Added iPhone 8, 8 Plus and X. Also updating NuGet to v1.2.
09/14/2017 - NuGet updated to v1.1
07/06/2017 - Adding NuGet
06/27/2017 - Added iPad Pro (12.9-inch 2nd generation) and iPad Pro (10.5-inch)
03/21/2017 - Added new iPad 5th generation
10/26/2016 - corrected/added missing iPad6,4
09/12/2016 - added iPhone 7 and 7 Plus
03/30/2016 - added iPad Pro (9.7-inch) and iPhone SE
01/19/2016 - added iPad Pro
09/28/2015 - added iPhone 6s & iPhone 6s Plus
07/15/2015 - added iPod 6th Generation
10/20/2014 - added iPad Air 2 & iPad mini 3
09/17/2014 - added iPhone 6 and 6 Plus
01/08/2014 - added iPad Mini Retina and iPad Air


Install

Install-Package dannycabrera.GetiOSModel

Sample

Console.WriteLine(Xamarin.iOS.DeviceHardware.Version);

Result: "iPhone5,3"

Console.WriteLine(Xamarin.iOS.DeviceHardware.Model);

Result: "iPhone 5C GSM"


Thanks to:

@sven-s, @manishkungwani, @jimbobbennett for their pull requests.

About

Get the iOS model using the hw.machine string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%