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 Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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:
    • setBackgroundRecordingSurface

      public 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).

      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

      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.Parameters object.
      See Also: