CraftARCamera Class Reference
#import <CraftARCamera.h>
Inheritance diagram for CraftARCamera:

Instance Methods |
|
(void) | - pauseCapture |
(void) | - restartCapture |
(BOOL) | - isCapturing |
(void) | - takePicture |
(void) | - runConfigurationBlock: |
Class Methods |
|
(void) | + setCapturePreset: |
(void) | + setCaptureMaxFPS: |
Properties |
|
id< CameraEventsProtocol > | delegate |
Delegate that will receive the camera events. | |
Detailed Description
Class that allows basic control of the device's camera
Method Documentation
- (BOOL) isCapturing |
Returns true if the camera capture is running (not paused)
- (void) pauseCapture |
Pause the camera video capture. The camera will stop generating didReceivePreviewFrame events.
- (void) restartCapture |
Restart the camera video capture If the camera capture was open, the capture is reinitialized.
- (void) runConfigurationBlock: | (void(^)(AVCaptureDevice *camera)) | configurationBlock |
Runs a passed block with the camera device as parameter if the capture session is active. Does nothing if the camera is not capturing.
+ (void) setCaptureMaxFPS: | (int) | maxFPS |
Limit the maximum FPS from the camera
- Parameters
-
maxFPS 60 by default Note: The maximum FPS is set by default to choose the best camera configuration possible for AR. If the camera capture appears too dark, this setting can control the aperture time of the camera.
+ (void) setCapturePreset: | (NSString *) | avCaptureSessionPreset |
Set the capture preset (video capture size)
- Parameters
-
avCaptureSessionPreset AVCaptureSessionPreset1280x720 by default. Note: supported capture presets are AVCaptureSessionPreset1280x720 and AVCaptureSessionPreset640x480
- (void) takePicture |
Take a picture. Will trigger didTakePicture.
The documentation for this class was generated from the following file:
- CraftARProSDK.framework/Headers/CraftARCamera.h