2014 snapchat source code

27 lines
789 B

  1. //
  2. // SCCaptureImageStateTransitionPayload.m
  3. // Snapchat
  4. //
  5. // Created by Lin Jia on 1/9/18.
  6. //
  7. #import "SCCaptureImageStateTransitionPayload.h"
  8. @implementation SCCaptureImageStateTransitionPayload
  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