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.

27 lines
835 B

  1. //
  2. // SCCaptureImageWhileRecordingStateTransitionPayload.m
  3. // Snapchat
  4. //
  5. // Created by Sun Lei on 22/02/2018.
  6. //
  7. #import "SCCaptureImageWhileRecordingStateTransitionPayload.h"
  8. @implementation SCCaptureImageWhileRecordingStateTransitionPayload
  9. - (instancetype)initWithFromState:(SCCaptureStateMachineStateId)fromState
  10. toState:(SCCaptureStateMachineStateId)toState
  11. captureSessionId:(NSString *)captureSessionID
  12. aspectRatio:(CGFloat)aspectRatio
  13. completionHandler:(sc_managed_capturer_capture_still_image_completion_handler_t)block
  14. {
  15. self = [super initWithFromState:fromState toState:toState];
  16. if (self) {
  17. _captureSessionID = captureSessionID;
  18. _aspectRatio = aspectRatio;
  19. _block = block;
  20. }
  21. return self;
  22. }
  23. @end