OLD | NEW |
(Empty) | |
| 1 /* |
| 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 |
| 13 typedef 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 RTCDeviceTypeIPodTouch1G, |
| 32 RTCDeviceTypeIPodTouch2G, |
| 33 RTCDeviceTypeIPodTouch3G, |
| 34 RTCDeviceTypeIPodTouch4G, |
| 35 RTCDeviceTypeIPodTouch5G, |
| 36 RTCDeviceTypeIPad, |
| 37 RTCDeviceTypeIPad2Wifi, |
| 38 RTCDeviceTypeIPad2GSM, |
| 39 RTCDeviceTypeIPad2CDMA, |
| 40 RTCDeviceTypeIPad2Wifi2, |
| 41 RTCDeviceTypeIPadMiniWifi, |
| 42 RTCDeviceTypeIPadMiniGSM, |
| 43 RTCDeviceTypeIPadMiniGSM_CDMA, |
| 44 RTCDeviceTypeIPad3Wifi, |
| 45 RTCDeviceTypeIPad3GSM_CDMA, |
| 46 RTCDeviceTypeIPad3GSM, |
| 47 RTCDeviceTypeIPad4Wifi, |
| 48 RTCDeviceTypeIPad4GSM, |
| 49 RTCDeviceTypeIPad4GSM_CDMA, |
| 50 RTCDeviceTypeIPadAirWifi, |
| 51 RTCDeviceTypeIPadAirCellular, |
| 52 RTCDeviceTypeIPadMini2GWifi, |
| 53 RTCDeviceTypeIPadMini2GCellular, |
| 54 RTCDeviceTypeSimulatori386, |
| 55 RTCDeviceTypeSimulatorx86_64, |
| 56 }; |
| 57 |
| 58 @interface UIDevice (RTCDevice) |
| 59 |
| 60 + (RTCDeviceType)deviceType; |
| 61 + (NSString *)stringForDeviceType:(RTCDeviceType)deviceType; |
| 62 |
| 63 @end |
OLD | NEW |