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
720 B

  1. //
  2. // SCBlackCameraRunningDetector.h
  3. // Snapchat
  4. //
  5. // Created by Derek Wang on 30/01/2018.
  6. //
  7. #import <SCBase/SCMacros.h>
  8. #import <Foundation/Foundation.h>
  9. @class SCQueuePerformer, SCBlackCameraReporter;
  10. @protocol SCManiphestTicketCreator;
  11. @interface SCBlackCameraRunningDetector : NSObject
  12. SC_INIT_AND_NEW_UNAVAILABLE
  13. - (instancetype)initWithPerformer:(SCQueuePerformer *)performer reporter:(SCBlackCameraReporter *)reporter;
  14. // When session isRunning changed
  15. - (void)sessionDidChangeIsRunning:(BOOL)running;
  16. // Call this after [AVCaptureSession startRunning] is called
  17. - (void)sessionDidCallStartRunning;
  18. // Call this before [AVCaptureSession stopRunning] is called
  19. - (void)sessionWillCallStopRunning;
  20. @end