Class CameraController.Parameters.Builder
- java.lang.Object
-
- com.navmii.android.dashcamsdk.camera.CameraController.Parameters.Builder
-
- Enclosing class:
- CameraController.Parameters
public abstract static class CameraController.Parameters.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract CameraController.Parametersbuild()abstract CameraController.Parameters.BuildersetAutofocusEnabled(boolean isEnabled)abstract CameraController.Parameters.BuildersetBackgroundRecordingSurface(android.view.Surface surface)Sets the surface to use when the application is put into the background (in order to continue recording).abstract CameraController.Parameters.BuildersetCyclicRecordingEnabled(boolean isEnabled)Enables or disables cyclic recording.abstract CameraController.Parameters.BuildersetMicrophoneMute(boolean mute)Enables or disables the microphone for video recordings.
-
-
-
Method Detail
-
setAutofocusEnabled
public abstract CameraController.Parameters.Builder setAutofocusEnabled(boolean isEnabled)
- Parameters:
isEnabled- True if autofocus should be enabled, false otherwise.- Returns:
- The builder.
-
setMicrophoneMute
public abstract CameraController.Parameters.Builder setMicrophoneMute(boolean mute)
Enables or disables the microphone for video recordings.Note: in order to be able to record audio you must obtain RECORD_AUDIO permission.
Note: changing the mute state during a recording session will result in the recording stop/start events firing and a new library item created. This is due to the addition/removal of the microphone input stream to the underlying video stream.
- Parameters:
mute- True if audio should be muted, false otherwise.- Returns:
- The builder.
- See Also:
CameraController.Parameters.isMicrophoneMute()
-
setBackgroundRecordingSurface
public abstract CameraController.Parameters.Builder setBackgroundRecordingSurface(android.view.Surface surface)
Sets the surface to use when the application is put into the background (in order to continue recording).This can be a simple 1x1 pixel surface placed anywhere on the screen. For example, you can use a View with TYPE_SYSTEM_OVERLAY type.
- Parameters:
surface- The surface.- Returns:
- The builder.
- See Also:
CameraController.Parameters.getBackgroundRecordingSurface()
-
setCyclicRecordingEnabled
public abstract CameraController.Parameters.Builder setCyclicRecordingEnabled(boolean isEnabled)
Enables or disables cyclic recording.If cyclic recording is enabled, oldest unlocked videos will be removed automatically when there is not enough disk space to continue recording.
Note: the default value is true.
- Parameters:
isEnabled- True if cyclic recording should be enabled, false otherwise.- Returns:
- The builder.
-
build
public abstract CameraController.Parameters build()
- Returns:
- A
CameraController.Parametersobject. - See Also:
CameraController.setParameters(Parameters)
-
-