![]() |
Dashcam SDK 1.0.7
Captures, recognizes and records road aigns.
|
#import <NMDCameraController.h>
Inherits NSObject.
Instance Methods | |
(void) | - startPreviewInView: |
(void) | - stopPreview |
(BOOL) | - isPreviewRunning |
(void) | - startRecordingWithCompletion: |
(void) | - stopRecordingWithCompletion: |
(void) | - takeSnapshot |
Properties | |
id< NMDCameraControllerDelegate > | delegate |
NMDCameraControllerRecordingState | recordingState |
NSTimeInterval | videoFileDuration |
AVOutputSettingsPreset | videoOutputSettingsPreset |
BOOL | prefersWideAngleCamera |
BOOL | recordsAudio |
Manages all the camera related operations, like setting up the camera output, video file duration, starting and stopping the recording, etc.
- (BOOL) isPreviewRunning |
Indicates whether the video preview is running.
- (void) startPreviewInView: | (UIView *) | view |
Adds a layer to the specified view and starts displaying video from a back camera into that layer.
- (void) startRecordingWithCompletion: | (void(^)(NSError *_Nullable error)) | completion |
Creates an item in the library and starts recording a video file associated with the library item.
completion | A block called once the recording has started. |
- (void) stopPreview |
Stops displaying video from the camera and removes the video output layer from the view specified in the startPreviewInView: method.
- (void) stopRecordingWithCompletion: | (void(^)(void)) | completion |
Stops video recording.
completion | A block called once the recording has stopped. |
- (void) takeSnapshot |
Creates an item in the library, takes a picture from a back camera and associates it with the library item.
|
readwritenonatomicweak |
|
readwritenonatomicassign |
Specifies whether the camera controller should prefer wide angle camera in a multi-camera system.
|
readnonatomicassign |
Сurrent video recording state.
|
readwritenonatomicassign |
Specifies whether the audio track should be added to the video files.
|
readwritenonatomicassign |
Specifies the duration of a video file.
|
readwritenonatomicstrong |
Specifies the format of the video produced by the camera.