blob: a7f655ba7b58c3d3693f89308ddcf161672bae69 [file] [log] [blame]
Anders Carlsson7bca8ca2018-08-30 09:30:29 +02001/*
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#import <UIKit/UIKit.h>
12
13typedef NS_ENUM(NSInteger, RTCDeviceType) {
14 RTCDeviceTypeUnknown,
15 RTCDeviceTypeIPhone1G,
16 RTCDeviceTypeIPhone3G,
17 RTCDeviceTypeIPhone3GS,
18 RTCDeviceTypeIPhone4,
19 RTCDeviceTypeIPhone4Verizon,
20 RTCDeviceTypeIPhone4S,
21 RTCDeviceTypeIPhone5GSM,
22 RTCDeviceTypeIPhone5GSM_CDMA,
23 RTCDeviceTypeIPhone5CGSM,
24 RTCDeviceTypeIPhone5CGSM_CDMA,
25 RTCDeviceTypeIPhone5SGSM,
26 RTCDeviceTypeIPhone5SGSM_CDMA,
27 RTCDeviceTypeIPhone6Plus,
28 RTCDeviceTypeIPhone6,
29 RTCDeviceTypeIPhone6S,
30 RTCDeviceTypeIPhone6SPlus,
31 RTCDeviceTypeIPhone7,
32 RTCDeviceTypeIPhone7Plus,
33 RTCDeviceTypeIPhoneSE,
34 RTCDeviceTypeIPhone8,
35 RTCDeviceTypeIPhone8Plus,
36 RTCDeviceTypeIPhoneX,
Yura Yaroshevichc6de47e2018-10-23 16:55:04 +030037 RTCDeviceTypeIPhoneXS,
38 RTCDeviceTypeIPhoneXSMax,
39 RTCDeviceTypeIPhoneXR,
Yura Yaroshevichde365952019-10-31 12:01:53 +030040 RTCDeviceTypeIPhone11,
41 RTCDeviceTypeIPhone11Pro,
42 RTCDeviceTypeIPhone11ProMax,
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020043 RTCDeviceTypeIPodTouch1G,
44 RTCDeviceTypeIPodTouch2G,
45 RTCDeviceTypeIPodTouch3G,
46 RTCDeviceTypeIPodTouch4G,
47 RTCDeviceTypeIPodTouch5G,
48 RTCDeviceTypeIPodTouch6G,
Yura Yaroshevichde365952019-10-31 12:01:53 +030049 RTCDeviceTypeIPodTouch7G,
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020050 RTCDeviceTypeIPad,
51 RTCDeviceTypeIPad2Wifi,
52 RTCDeviceTypeIPad2GSM,
53 RTCDeviceTypeIPad2CDMA,
54 RTCDeviceTypeIPad2Wifi2,
55 RTCDeviceTypeIPadMiniWifi,
56 RTCDeviceTypeIPadMiniGSM,
57 RTCDeviceTypeIPadMiniGSM_CDMA,
58 RTCDeviceTypeIPad3Wifi,
59 RTCDeviceTypeIPad3GSM_CDMA,
60 RTCDeviceTypeIPad3GSM,
61 RTCDeviceTypeIPad4Wifi,
62 RTCDeviceTypeIPad4GSM,
63 RTCDeviceTypeIPad4GSM_CDMA,
64 RTCDeviceTypeIPad5,
65 RTCDeviceTypeIPad6,
66 RTCDeviceTypeIPadAirWifi,
67 RTCDeviceTypeIPadAirCellular,
68 RTCDeviceTypeIPadAirWifiCellular,
69 RTCDeviceTypeIPadAir2,
70 RTCDeviceTypeIPadMini2GWifi,
71 RTCDeviceTypeIPadMini2GCellular,
72 RTCDeviceTypeIPadMini2GWifiCellular,
73 RTCDeviceTypeIPadMini3,
74 RTCDeviceTypeIPadMini4,
75 RTCDeviceTypeIPadPro9Inch,
76 RTCDeviceTypeIPadPro12Inch,
77 RTCDeviceTypeIPadPro12Inch2,
78 RTCDeviceTypeIPadPro10Inch,
Yura Yaroshevichde365952019-10-31 12:01:53 +030079 RTCDeviceTypeIPad7Gen10Inch,
80 RTCDeviceTypeIPadPro3Gen11Inch,
81 RTCDeviceTypeIPadPro3Gen12Inch,
82 RTCDeviceTypeIPadMini5Gen,
83 RTCDeviceTypeIPadAir3Gen,
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020084 RTCDeviceTypeSimulatori386,
85 RTCDeviceTypeSimulatorx86_64,
86};
87
88@interface UIDevice (RTCDevice)
89
90+ (RTCDeviceType)deviceType;
91+ (BOOL)isIOS11OrLater;
92
93@end