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.

41 lines
1.4 KiB

  1. //
  2. // SCCaptureRecordingStateTransitionPayload.h
  3. // Snapchat
  4. //
  5. // Created by Jingtian Yang on 12/01/2018.
  6. //
  7. #import "SCCaptureCommon.h"
  8. #import "SCManagedVideoCapturerOutputSettings.h"
  9. #import "SCStateTransitionPayload.h"
  10. #import <SCAudio/SCAudioConfiguration.h>
  11. #import <Foundation/Foundation.h>
  12. @interface SCCaptureRecordingStateTransitionPayload : SCStateTransitionPayload
  13. @property (nonatomic, readonly, strong) SCManagedVideoCapturerOutputSettings *outputSettings;
  14. @property (nonatomic, readonly, strong) SCAudioConfiguration *configuration;
  15. @property (nonatomic, readonly, assign) NSTimeInterval maxDuration;
  16. @property (nonatomic, readonly, strong) NSURL *fileURL;
  17. @property (nonatomic, readonly, strong) NSString *captureSessionID;
  18. @property (nonatomic, readonly, copy) sc_managed_capturer_start_recording_completion_handler_t block;
  19. SC_INIT_AND_NEW_UNAVAILABLE
  20. - (instancetype)initWithFromState:(SCCaptureStateMachineStateId)fromState
  21. toState:(SCCaptureStateMachineStateId)toState
  22. outputSettings:(SCManagedVideoCapturerOutputSettings *)outputSettings
  23. audioConfiguration:(SCAudioConfiguration *)configuration
  24. maxDuration:(NSTimeInterval)maxDuration
  25. fileURL:(NSURL *)fileURL
  26. captureSessionID:(NSString *)captureSessionID
  27. completionHandler:(sc_managed_capturer_start_recording_completion_handler_t)block;
  28. @end