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