Class CameraController.Parameters.Builder
java.lang.Object
com.navmii.android.dashcamsdk.camera.CameraController.Parameters.Builder
- Enclosing class:
- CameraController.Parameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract CameraController.Parameters
build()
abstract CameraController.Parameters.Builder
setAutofocusEnabled
(boolean isEnabled) abstract CameraController.Parameters.Builder
setBackgroundRecordingSurface
(Surface surface) Sets the surface to use when the application is put into the background (in order to continue recording).abstract CameraController.Parameters.Builder
setCyclicRecordingEnabled
(boolean isEnabled) Enables or disables cyclic recording.abstract CameraController.Parameters.Builder
setMicrophoneMute
(boolean mute) Enables or disables the microphone for video recordings.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setAutofocusEnabled
- Parameters:
isEnabled
- True if autofocus should be enabled, false otherwise.- Returns:
- The builder.
-
setMicrophoneMute
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:
-
setBackgroundRecordingSurface
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:
-
setCyclicRecordingEnabled
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
- Returns:
- A
CameraController.Parameters
object. - See Also:
-