FileOutputOptions

@RequiresApi(value = 21)
public final class FileOutputOptions extends OutputOptions


A class providing options for storing the result to a given file.

The file must be in a path where the application has the write permission.

To use a android.os.ParcelFileDescriptor as an output destination instead of a File, use FileDescriptorOutputOptions.

Summary

Nested types

@RequiresApi(value = 21)
public final class FileOutputOptions.Builder

The builder of the FileOutputOptions object.

Public methods

boolean
@NonNull File

Gets the File instance

int
@NonNull String

Inherited Constants

From androidx.camera.video.OutputOptions
static final int

Represents an unlimited duration.

static final int

Represents an unbound file size.

Inherited methods

From androidx.camera.video.OutputOptions
@IntRange(from = 0) long

Gets the limit for the video duration in milliseconds.

@IntRange(from = 0) long

Gets the limit for the file size in bytes.

@Nullable Location

Returns a Location object representing the geographic location where the video was recorded.

Public methods

equals

public boolean equals(@Nullable Object o)

getFile

Added in 1.1.0
public @NonNull File getFile()

Gets the File instance

hashCode

public int hashCode()

toString

public @NonNull String toString()