public final class

FileDescriptorOutputOptions.Builder

extends java.lang.Object

implements androidx.camera.video.OutputOptions.Builder<FileDescriptorOutputOptions, FileDescriptorOutputOptions.Builder>

 java.lang.Object

↳androidx.camera.video.FileDescriptorOutputOptions.Builder

Overview

The builder of the FileDescriptorOutputOptions object.

Summary

Constructors
publicBuilder(ParcelFileDescriptor fileDescriptor)

Creates a builder of the FileDescriptorOutputOptions with a file descriptor.

Methods
public FileDescriptorOutputOptionsbuild()

Builds the FileDescriptorOutputOptions instance.

public FileDescriptorOutputOptions.BuildersetFileSizeLimit(long fileSizeLimitBytes)

Sets the limit for the file length in bytes.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(ParcelFileDescriptor fileDescriptor)

Creates a builder of the FileDescriptorOutputOptions with a file descriptor.

Parameters:

fileDescriptor: the file descriptor to use as the output destination.

Methods

public FileDescriptorOutputOptions.Builder setFileSizeLimit(long fileSizeLimitBytes)

Sets the limit for the file length in bytes.

When used to generate recording, if the specified file size limit is reached while the recording is being recorded, the recording will be finalized with VideoRecordEvent.Finalize.ERROR_FILE_SIZE_LIMIT_REACHED.

If not set, defaults to OutputOptions.FILE_SIZE_UNLIMITED.

Builds the FileDescriptorOutputOptions instance.