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.

26 lines
750 B

  1. //
  2. // SCManagedCapturerARSessionHandler.h
  3. // Snapchat
  4. //
  5. // Created by Xiaokang Liu on 16/03/2018.
  6. //
  7. // This class is used to handle the AVCaptureSession event when ARSession is enabled.
  8. // The stopARSessionRunning will be blocked till the AVCaptureSessionDidStopRunningNotification event has been received
  9. // successfully,
  10. // after then we can restart AVCaptureSession gracefully.
  11. #import <SCBase/SCMacros.h>
  12. #import <Foundation/Foundation.h>
  13. @class SCCaptureResource;
  14. @interface SCManagedCapturerARSessionHandler : NSObject
  15. SC_INIT_AND_NEW_UNAVAILABLE
  16. - (instancetype)initWithCaptureResource:(SCCaptureResource *)captureResource NS_DESIGNATED_INITIALIZER;
  17. - (void)stopObserving;
  18. - (void)stopARSessionRunning NS_AVAILABLE_IOS(11_0);
  19. @end