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.

31 lines
806 B

  1. //
  2. // SCBlackCameraDetectorCameraView.h
  3. // Snapchat
  4. //
  5. // Created by Derek Wang on 24/01/2018.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <UIKit/UIKit.h>
  9. @class SCQueuePerformer, SCBlackCameraReporter;
  10. @protocol SCManiphestTicketCreator;
  11. @interface SCBlackCameraViewDetector : NSObject
  12. - (instancetype)initWithPerformer:(SCQueuePerformer *)performer reporter:(SCBlackCameraReporter *)reporter;
  13. // CameraView visible/invisible
  14. - (void)onCameraViewVisible:(BOOL)visible;
  15. - (void)onCameraViewVisibleWithTouch:(UIGestureRecognizer *)gesture;
  16. // Call this when [AVCaptureSession startRunning] is called
  17. - (void)sessionWillCallStartRunning;
  18. // Call this when [AVCaptureSession stopRunning] is called
  19. - (void)sessionWillCallStopRunning;
  20. - (void)sessionWillRecreate;
  21. - (void)sessionDidRecreate;
  22. @end