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
37 lines
1.1 KiB
//
|
|
// SCFeatureToggleCamera.h
|
|
// SCCamera
|
|
//
|
|
// Created by Michel Loenngren on 4/17/18.
|
|
//
|
|
|
|
#import <SCCamera/SCFeature.h>
|
|
#import <SCCameraFoundation/SCManagedCaptureDevicePosition.h>
|
|
|
|
@protocol SCCapturer
|
|
, SCFeatureToggleCamera, SCLensCameraScreenDataProviderProtocol;
|
|
|
|
@protocol SCFeatureToggleCameraDelegate <NSObject>
|
|
|
|
- (void)featureToggleCamera:(id<SCFeatureToggleCamera>)feature
|
|
willToggleToDevicePosition:(SCManagedCaptureDevicePosition)devicePosition;
|
|
- (void)featureToggleCamera:(id<SCFeatureToggleCamera>)feature
|
|
didToggleToDevicePosition:(SCManagedCaptureDevicePosition)devicePosition;
|
|
|
|
@end
|
|
|
|
/**
|
|
SCFeature protocol for toggling the camera.
|
|
*/
|
|
@protocol SCFeatureToggleCamera <SCFeature>
|
|
|
|
@property (nonatomic, weak) id<SCFeatureToggleCameraDelegate> delegate;
|
|
|
|
- (void)toggleCameraWithRecording:(BOOL)isRecording
|
|
takingPicture:(BOOL)isTakingPicture
|
|
lensDataProvider:(id<SCLensCameraScreenDataProviderProtocol>)lensDataProvider
|
|
completion:(void (^)(BOOL success))completion;
|
|
|
|
- (void)reset;
|
|
|
|
@end
|