UIDevice+RTCDevice.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. #import <UIKit/UIKit.h>
  11. typedef NS_ENUM(NSInteger, RTCDeviceType) {
  12. RTCDeviceTypeUnknown,
  13. RTCDeviceTypeIPhone1G,
  14. RTCDeviceTypeIPhone3G,
  15. RTCDeviceTypeIPhone3GS,
  16. RTCDeviceTypeIPhone4,
  17. RTCDeviceTypeIPhone4Verizon,
  18. RTCDeviceTypeIPhone4S,
  19. RTCDeviceTypeIPhone5GSM,
  20. RTCDeviceTypeIPhone5GSM_CDMA,
  21. RTCDeviceTypeIPhone5CGSM,
  22. RTCDeviceTypeIPhone5CGSM_CDMA,
  23. RTCDeviceTypeIPhone5SGSM,
  24. RTCDeviceTypeIPhone5SGSM_CDMA,
  25. RTCDeviceTypeIPhone6Plus,
  26. RTCDeviceTypeIPhone6,
  27. RTCDeviceTypeIPhone6S,
  28. RTCDeviceTypeIPhone6SPlus,
  29. RTCDeviceTypeIPhone7,
  30. RTCDeviceTypeIPhone7Plus,
  31. RTCDeviceTypeIPhoneSE,
  32. RTCDeviceTypeIPhone8,
  33. RTCDeviceTypeIPhone8Plus,
  34. RTCDeviceTypeIPhoneX,
  35. RTCDeviceTypeIPhoneXS,
  36. RTCDeviceTypeIPhoneXSMax,
  37. RTCDeviceTypeIPhoneXR,
  38. RTCDeviceTypeIPhone11,
  39. RTCDeviceTypeIPhone11Pro,
  40. RTCDeviceTypeIPhone11ProMax,
  41. RTCDeviceTypeIPhone12Mini,
  42. RTCDeviceTypeIPhone12,
  43. RTCDeviceTypeIPhone12Pro,
  44. RTCDeviceTypeIPhone12ProMax,
  45. RTCDeviceTypeIPhoneSE2Gen,
  46. RTCDeviceTypeIPhone13,
  47. RTCDeviceTypeIPhone13Mini,
  48. RTCDeviceTypeIPhone13Pro,
  49. RTCDeviceTypeIPhone13ProMax,
  50. RTCDeviceTypeIPodTouch1G,
  51. RTCDeviceTypeIPodTouch2G,
  52. RTCDeviceTypeIPodTouch3G,
  53. RTCDeviceTypeIPodTouch4G,
  54. RTCDeviceTypeIPodTouch5G,
  55. RTCDeviceTypeIPodTouch6G,
  56. RTCDeviceTypeIPodTouch7G,
  57. RTCDeviceTypeIPad,
  58. RTCDeviceTypeIPad2Wifi,
  59. RTCDeviceTypeIPad2GSM,
  60. RTCDeviceTypeIPad2CDMA,
  61. RTCDeviceTypeIPad2Wifi2,
  62. RTCDeviceTypeIPadMiniWifi,
  63. RTCDeviceTypeIPadMiniGSM,
  64. RTCDeviceTypeIPadMiniGSM_CDMA,
  65. RTCDeviceTypeIPad3Wifi,
  66. RTCDeviceTypeIPad3GSM_CDMA,
  67. RTCDeviceTypeIPad3GSM,
  68. RTCDeviceTypeIPad4Wifi,
  69. RTCDeviceTypeIPad4GSM,
  70. RTCDeviceTypeIPad4GSM_CDMA,
  71. RTCDeviceTypeIPad5,
  72. RTCDeviceTypeIPad6,
  73. RTCDeviceTypeIPadAirWifi,
  74. RTCDeviceTypeIPadAirCellular,
  75. RTCDeviceTypeIPadAirWifiCellular,
  76. RTCDeviceTypeIPadAir2,
  77. RTCDeviceTypeIPadMini2GWifi,
  78. RTCDeviceTypeIPadMini2GCellular,
  79. RTCDeviceTypeIPadMini2GWifiCellular,
  80. RTCDeviceTypeIPadMini3,
  81. RTCDeviceTypeIPadMini4,
  82. RTCDeviceTypeIPadPro9Inch,
  83. RTCDeviceTypeIPadPro12Inch,
  84. RTCDeviceTypeIPadPro12Inch2,
  85. RTCDeviceTypeIPadPro10Inch,
  86. RTCDeviceTypeIPad7Gen10Inch,
  87. RTCDeviceTypeIPadPro3Gen11Inch,
  88. RTCDeviceTypeIPadPro3Gen12Inch,
  89. RTCDeviceTypeIPadPro4Gen11Inch,
  90. RTCDeviceTypeIPadPro4Gen12Inch,
  91. RTCDeviceTypeIPadMini5Gen,
  92. RTCDeviceTypeIPadAir3Gen,
  93. RTCDeviceTypeIPad8,
  94. RTCDeviceTypeIPad9,
  95. RTCDeviceTypeIPadMini6,
  96. RTCDeviceTypeIPadAir4Gen,
  97. RTCDeviceTypeIPadPro5Gen11Inch,
  98. RTCDeviceTypeIPadPro5Gen12Inch,
  99. RTCDeviceTypeSimulatori386,
  100. RTCDeviceTypeSimulatorx86_64,
  101. };
  102. @interface UIDevice (RTCDevice)
  103. + (RTCDeviceType)deviceType;
  104. + (BOOL)isIOS11OrLater;
  105. @end