Giter Club home page Giter Club logo

get-ios-model's Introduction

GetiOSModel Logo

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/07/2018 - iPad Pro 11-inch whitespace character fix thanks to @adamzucchi
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 and @adamzucchi for their pull requests.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.