2014 snapchat source code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

158 lines
4.8 KiB

  1. // 49126048c3d19dd5b676b8d39844cf133833b67a
  2. // Generated by the value-object.rb DO NOT EDIT!!
  3. #import "SCManagedCapturerStateBuilder.h"
  4. #import <SCFoundation/SCValueObjectHelpers.h>
  5. #import <FastCoding/FastCoder.h>
  6. @implementation SCManagedCapturerStateBuilder {
  7. BOOL _isRunning;
  8. BOOL _isNightModeActive;
  9. BOOL _isPortraitModeActive;
  10. BOOL _lowLightCondition;
  11. BOOL _adjustingExposure;
  12. SCManagedCaptureDevicePosition _devicePosition;
  13. CGFloat _zoomFactor;
  14. BOOL _flashSupported;
  15. BOOL _torchSupported;
  16. BOOL _flashActive;
  17. BOOL _torchActive;
  18. BOOL _lensesActive;
  19. BOOL _arSessionActive;
  20. BOOL _liveVideoStreaming;
  21. BOOL _lensProcessorReady;
  22. }
  23. + (instancetype)withManagedCapturerState:(id<SCManagedCapturerState>)managedCapturerState
  24. {
  25. SCManagedCapturerStateBuilder *builder = [[SCManagedCapturerStateBuilder alloc] init];
  26. builder->_isRunning = managedCapturerState.isRunning;
  27. builder->_isNightModeActive = managedCapturerState.isNightModeActive;
  28. builder->_isPortraitModeActive = managedCapturerState.isPortraitModeActive;
  29. builder->_lowLightCondition = managedCapturerState.lowLightCondition;
  30. builder->_adjustingExposure = managedCapturerState.adjustingExposure;
  31. builder->_devicePosition = managedCapturerState.devicePosition;
  32. builder->_zoomFactor = managedCapturerState.zoomFactor;
  33. builder->_flashSupported = managedCapturerState.flashSupported;
  34. builder->_torchSupported = managedCapturerState.torchSupported;
  35. builder->_flashActive = managedCapturerState.flashActive;
  36. builder->_torchActive = managedCapturerState.torchActive;
  37. builder->_lensesActive = managedCapturerState.lensesActive;
  38. builder->_arSessionActive = managedCapturerState.arSessionActive;
  39. builder->_liveVideoStreaming = managedCapturerState.liveVideoStreaming;
  40. builder->_lensProcessorReady = managedCapturerState.lensProcessorReady;
  41. return builder;
  42. }
  43. - (SCManagedCapturerState *)build
  44. {
  45. return [[SCManagedCapturerState alloc] initWithIsRunning:_isRunning
  46. isNightModeActive:_isNightModeActive
  47. isPortraitModeActive:_isPortraitModeActive
  48. lowLightCondition:_lowLightCondition
  49. adjustingExposure:_adjustingExposure
  50. devicePosition:_devicePosition
  51. zoomFactor:_zoomFactor
  52. flashSupported:_flashSupported
  53. torchSupported:_torchSupported
  54. flashActive:_flashActive
  55. torchActive:_torchActive
  56. lensesActive:_lensesActive
  57. arSessionActive:_arSessionActive
  58. liveVideoStreaming:_liveVideoStreaming
  59. lensProcessorReady:_lensProcessorReady];
  60. }
  61. - (instancetype)setIsRunning:(BOOL)isRunning
  62. {
  63. _isRunning = isRunning;
  64. return self;
  65. }
  66. - (instancetype)setIsNightModeActive:(BOOL)isNightModeActive
  67. {
  68. _isNightModeActive = isNightModeActive;
  69. return self;
  70. }
  71. - (instancetype)setIsPortraitModeActive:(BOOL)isPortraitModeActive
  72. {
  73. _isPortraitModeActive = isPortraitModeActive;
  74. return self;
  75. }
  76. - (instancetype)setLowLightCondition:(BOOL)lowLightCondition
  77. {
  78. _lowLightCondition = lowLightCondition;
  79. return self;
  80. }
  81. - (instancetype)setAdjustingExposure:(BOOL)adjustingExposure
  82. {
  83. _adjustingExposure = adjustingExposure;
  84. return self;
  85. }
  86. - (instancetype)setDevicePosition:(SCManagedCaptureDevicePosition)devicePosition
  87. {
  88. _devicePosition = devicePosition;
  89. return self;
  90. }
  91. - (instancetype)setZoomFactor:(CGFloat)zoomFactor
  92. {
  93. _zoomFactor = zoomFactor;
  94. return self;
  95. }
  96. - (instancetype)setFlashSupported:(BOOL)flashSupported
  97. {
  98. _flashSupported = flashSupported;
  99. return self;
  100. }
  101. - (instancetype)setTorchSupported:(BOOL)torchSupported
  102. {
  103. _torchSupported = torchSupported;
  104. return self;
  105. }
  106. - (instancetype)setFlashActive:(BOOL)flashActive
  107. {
  108. _flashActive = flashActive;
  109. return self;
  110. }
  111. - (instancetype)setTorchActive:(BOOL)torchActive
  112. {
  113. _torchActive = torchActive;
  114. return self;
  115. }
  116. - (instancetype)setLensesActive:(BOOL)lensesActive
  117. {
  118. _lensesActive = lensesActive;
  119. return self;
  120. }
  121. - (instancetype)setArSessionActive:(BOOL)arSessionActive
  122. {
  123. _arSessionActive = arSessionActive;
  124. return self;
  125. }
  126. - (instancetype)setLiveVideoStreaming:(BOOL)liveVideoStreaming
  127. {
  128. _liveVideoStreaming = liveVideoStreaming;
  129. return self;
  130. }
  131. - (instancetype)setLensProcessorReady:(BOOL)lensProcessorReady
  132. {
  133. _lensProcessorReady = lensProcessorReady;
  134. return self;
  135. }
  136. @end