DeepAR iOS  v5.2.0
CameraController.h
Go to the documentation of this file.
1
7#import <UIKit/UIKit.h>
8#import <AVFoundation/AVFoundation.h>
9#import "DeepAR.h"
10
11@class ARView;
12
17@interface CameraController : NSObject
18
23@property (nonatomic, weak) DeepAR* deepAR;
24
30@property (nonatomic, weak) ARView* arview;
31
39@property (nonatomic, assign) AVCaptureDevicePosition position;
40
44@property (nonatomic, strong) AVCaptureSessionPreset preset;
45
49@property (nonatomic, assign) AVCaptureVideoOrientation videoOrientation;
50
64- (instancetype)init;
65
70
75
80- (void)startCamera;
81
87- (void)startCameraWithAudio:(BOOL)audio;
88
92- (void)stopCamera;
93
98- (void)startAudio;
99
103- (void)stopAudio;
104
105@end
Conatins the main DeepAR classes, structures and enumerations.
ARView is a class that extends UIView with all DeepAR features which can be positioned in the UI hier...
Definition: ARView.h:16
Helper class that wraps AVFoundation to handle camera-related logic like starting camera preview,...
Definition: CameraController.h:18
void checkCameraPermission()
Checks camera permissions.
instancetype init()
Initializes a new CameraController instance.
AVCaptureDevicePosition position
The currently selected camera.
Definition: CameraController.h:39
void checkMicrophonePermission()
Checks microphone permissions.
void startCamera()
Starts camera preview using AVFoundation.
void stopAudio()
Stops capturing audio samples.
AVCaptureSessionPreset preset
Represents camera resolution currently used. Can be changed in real-time.
Definition: CameraController.h:44
ARView * arview
The ARView instance.
Definition: CameraController.h:30
DeepAR * deepAR
The DeepAR instance.
Definition: CameraController.h:23
AVCaptureVideoOrientation videoOrientation
Represents currently used video orientation. Should be called with right orientation when the device ...
Definition: CameraController.h:49
void stopCamera()
Stops camera preview.
void startAudio()
Starts capturing audio samples using AVFoundation.
Main class for interacting with DeepAR engine.
Definition: DeepAR.h:373