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.

37 lines
1.1 KiB

  1. //
  2. // SCFeatureToggleCamera.h
  3. // SCCamera
  4. //
  5. // Created by Michel Loenngren on 4/17/18.
  6. //
  7. #import <SCCamera/SCFeature.h>
  8. #import <SCCameraFoundation/SCManagedCaptureDevicePosition.h>
  9. @protocol SCCapturer
  10. , SCFeatureToggleCamera, SCLensCameraScreenDataProviderProtocol;
  11. @protocol SCFeatureToggleCameraDelegate <NSObject>
  12. - (void)featureToggleCamera:(id<SCFeatureToggleCamera>)feature
  13. willToggleToDevicePosition:(SCManagedCaptureDevicePosition)devicePosition;
  14. - (void)featureToggleCamera:(id<SCFeatureToggleCamera>)feature
  15. didToggleToDevicePosition:(SCManagedCaptureDevicePosition)devicePosition;
  16. @end
  17. /**
  18. SCFeature protocol for toggling the camera.
  19. */
  20. @protocol SCFeatureToggleCamera <SCFeature>
  21. @property (nonatomic, weak) id<SCFeatureToggleCameraDelegate> delegate;
  22. - (void)toggleCameraWithRecording:(BOOL)isRecording
  23. takingPicture:(BOOL)isTakingPicture
  24. lensDataProvider:(id<SCLensCameraScreenDataProviderProtocol>)lensDataProvider
  25. completion:(void (^)(BOOL success))completion;
  26. - (void)reset;
  27. @end