Enum CameraController.RecordingStopReason
- java.lang.Object
-
- java.lang.Enum<CameraController.RecordingStopReason>
-
- com.navmii.android.dashcamsdk.camera.CameraController.RecordingStopReason
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CameraController.RecordingStopReason>
- Enclosing interface:
- CameraController
public static enum CameraController.RecordingStopReason extends java.lang.Enum<CameraController.RecordingStopReason>
A reason for stopping video recording.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURATION_CHANGEDUsed when recording has been restarted due to changes in configuration (in particular, when microphone is enabled or disabled viaCameraController.Parameters.Builder.setMicrophoneMute(boolean)).INTERNAL_ERRORUsed when an internal error has occurred.NO_SPACE_LEFTUsed when there is no space left on the disk to continue recording.RECORDING_FRAGMENT_TIMEOUTUsed when the recording exceeded the fragment duration timeout.USER_INITIATEDUsed whenCameraController.stopRecording()method has been called.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CameraController.RecordingStopReasonvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CameraController.RecordingStopReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER_INITIATED
public static final CameraController.RecordingStopReason USER_INITIATED
Used whenCameraController.stopRecording()method has been called.
-
RECORDING_FRAGMENT_TIMEOUT
public static final CameraController.RecordingStopReason RECORDING_FRAGMENT_TIMEOUT
Used when the recording exceeded the fragment duration timeout.- See Also:
VideoConfiguration.getFragmentDuration()
-
CONFIGURATION_CHANGED
public static final CameraController.RecordingStopReason CONFIGURATION_CHANGED
Used when recording has been restarted due to changes in configuration (in particular, when microphone is enabled or disabled viaCameraController.Parameters.Builder.setMicrophoneMute(boolean)).
-
NO_SPACE_LEFT
public static final CameraController.RecordingStopReason NO_SPACE_LEFT
Used when there is no space left on the disk to continue recording.
-
INTERNAL_ERROR
public static final CameraController.RecordingStopReason INTERNAL_ERROR
Used when an internal error has occurred.
-
-
Method Detail
-
values
public static CameraController.RecordingStopReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CameraController.RecordingStopReason c : CameraController.RecordingStopReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CameraController.RecordingStopReason valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-