UIDevice+RTCDevice.h 2.5 KB

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