blob: 736237582fe828bd736e5c8c0bddeae4e8beba29 [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,
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020040 RTCDeviceTypeIPodTouch1G,
41 RTCDeviceTypeIPodTouch2G,
42 RTCDeviceTypeIPodTouch3G,
43 RTCDeviceTypeIPodTouch4G,
44 RTCDeviceTypeIPodTouch5G,
45 RTCDeviceTypeIPodTouch6G,
46 RTCDeviceTypeIPad,
47 RTCDeviceTypeIPad2Wifi,
48 RTCDeviceTypeIPad2GSM,
49 RTCDeviceTypeIPad2CDMA,
50 RTCDeviceTypeIPad2Wifi2,
51 RTCDeviceTypeIPadMiniWifi,
52 RTCDeviceTypeIPadMiniGSM,
53 RTCDeviceTypeIPadMiniGSM_CDMA,
54 RTCDeviceTypeIPad3Wifi,
55 RTCDeviceTypeIPad3GSM_CDMA,
56 RTCDeviceTypeIPad3GSM,
57 RTCDeviceTypeIPad4Wifi,
58 RTCDeviceTypeIPad4GSM,
59 RTCDeviceTypeIPad4GSM_CDMA,
60 RTCDeviceTypeIPad5,
61 RTCDeviceTypeIPad6,
62 RTCDeviceTypeIPadAirWifi,
63 RTCDeviceTypeIPadAirCellular,
64 RTCDeviceTypeIPadAirWifiCellular,
65 RTCDeviceTypeIPadAir2,
66 RTCDeviceTypeIPadMini2GWifi,
67 RTCDeviceTypeIPadMini2GCellular,
68 RTCDeviceTypeIPadMini2GWifiCellular,
69 RTCDeviceTypeIPadMini3,
70 RTCDeviceTypeIPadMini4,
71 RTCDeviceTypeIPadPro9Inch,
72 RTCDeviceTypeIPadPro12Inch,
73 RTCDeviceTypeIPadPro12Inch2,
74 RTCDeviceTypeIPadPro10Inch,
75 RTCDeviceTypeSimulatori386,
76 RTCDeviceTypeSimulatorx86_64,
77};
78
79@interface UIDevice (RTCDevice)
80
81+ (RTCDeviceType)deviceType;
82+ (BOOL)isIOS11OrLater;
83
84@end