diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-04-08 12:34:46 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-04-08 12:34:46 +0000 |
commit | a0c0b2c83ac919084db3de503a8e719566ef198c (patch) | |
tree | a54a8f172f75dc246787e2a30fa3e64e584df230 | |
parent | c314cfd734fc7ace3070be4368a147c35aac74b5 (diff) | |
parent | 3974ac26093e00460e3dfa74866fac113ca449df (diff) | |
download | support-a0c0b2c83ac919084db3de503a8e719566ef198c.tar.gz |
Merge "Fix the doc of VideoRecordEvent.Finalize#getError" into androidx-main
-rw-r--r-- | camera/camera-video/src/main/java/androidx/camera/video/VideoRecordEvent.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/camera/camera-video/src/main/java/androidx/camera/video/VideoRecordEvent.java b/camera/camera-video/src/main/java/androidx/camera/video/VideoRecordEvent.java index 7549f7fc2fc..675343f9197 100644 --- a/camera/camera-video/src/main/java/androidx/camera/video/VideoRecordEvent.java +++ b/camera/camera-video/src/main/java/androidx/camera/video/VideoRecordEvent.java @@ -410,7 +410,11 @@ public abstract class VideoRecordEvent { /** * Gets the error cause. * - * <p>Returns {@code null} if {@link #hasError()} returns {@code false}. + * <p>Returns the error cause if any, otherwise returns {@code null}. + * <p>Note that not all error types include an error cause. For some error types, the + * file may still be generated successfully with no error cause. For example, + * {@link #ERROR_FILE_SIZE_LIMIT_REACHED}, {@link #ERROR_DURATION_LIMIT_REACHED} and + * {@link #ERROR_SOURCE_INACTIVE}. */ @Nullable public Throwable getCause() { |