UIDevice+RTCDevice.h 2.3 KB

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