Dashcam SDK 1.0.7
Captures, recognizes and records road aigns.
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
NMDCameraController Class Reference

#import <NMDCameraController.h>

Inherits NSObject.

Instance Methods

(void) - startPreviewInView:
 
(void) - stopPreview
 
(BOOL) - isPreviewRunning
 
(void) - startRecordingWithCompletion:
 
(void) - stopRecordingWithCompletion:
 
(void) - takeSnapshot
 

Properties

id< NMDCameraControllerDelegatedelegate
 
NMDCameraControllerRecordingState recordingState
 
NSTimeInterval videoFileDuration
 
AVOutputSettingsPreset videoOutputSettingsPreset
 
BOOL prefersWideAngleCamera
 
BOOL recordsAudio
 

Detailed Description

Manages all the camera related operations, like setting up the camera output, video file duration, starting and stopping the recording, etc.

Method Documentation

◆ isPreviewRunning

- (BOOL) isPreviewRunning

Indicates whether the video preview is running.

◆ startPreviewInView:

- (void) startPreviewInView: (UIView *)  view

Adds a layer to the specified view and starts displaying video from a back camera into that layer.

◆ startRecordingWithCompletion:

- (void) startRecordingWithCompletion: (void(^)(NSError *_Nullable error))  completion

Creates an item in the library and starts recording a video file associated with the library item.

Parameters
completionA block called once the recording has started.

◆ stopPreview

- (void) stopPreview

Stops displaying video from the camera and removes the video output layer from the view specified in the startPreviewInView: method.

◆ stopRecordingWithCompletion:

- (void) stopRecordingWithCompletion: (void(^)(void))  completion

Stops video recording.

Parameters
completionA block called once the recording has stopped.

◆ takeSnapshot

- (void) takeSnapshot

Creates an item in the library, takes a picture from a back camera and associates it with the library item.

Property Documentation

◆ delegate

- (id<NMDCameraControllerDelegate>) delegate
readwritenonatomicweak

◆ prefersWideAngleCamera

- (BOOL) prefersWideAngleCamera
readwritenonatomicassign

Specifies whether the camera controller should prefer wide angle camera in a multi-camera system.

◆ recordingState

- (NMDCameraControllerRecordingState) recordingState
readnonatomicassign

Сurrent video recording state.

◆ recordsAudio

- (BOOL) recordsAudio
readwritenonatomicassign

Specifies whether the audio track should be added to the video files.

◆ videoFileDuration

- (NSTimeInterval) videoFileDuration
readwritenonatomicassign

Specifies the duration of a video file.

◆ videoOutputSettingsPreset

- (AVOutputSettingsPreset) videoOutputSettingsPreset
readwritenonatomicstrong

Specifies the format of the video produced by the camera.