public final class

FileOutputOptions.Builder

extends java.lang.Object

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

 java.lang.Object

↳androidx.camera.video.FileOutputOptions.Builder

Overview

The builder of the FileOutputOptions object.

Summary

Constructors
publicBuilder(java.io.File file)

Creates a builder of the FileOutputOptions with a file object.

Methods
public FileOutputOptionsbuild()

Builds the FileOutputOptions instance.

public FileOutputOptions.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(java.io.File file)

Creates a builder of the FileOutputOptions with a file object.

The file object can be created with a path using the java.io.File APIs. The path must be seekable and writable.

Parameters:

file: the file object.

See also: java.io.File

Methods

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

public FileOutputOptions build()

Builds the FileOutputOptions instance.