FileDescriptorOutputOptions


public final class FileDescriptorOutputOptions extends OutputOptions


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

The file descriptor must be seekable and writable. The caller is responsible for closing the file descriptor, which can be safely closed after the recording starts. That is, after start returns. Application should not use the file referenced by this file descriptor until the recording is complete.

To use a java.io.File as an output destination instead of a file descriptor, use FileOutputOptions.

Summary

Nested types

The builder of the FileDescriptorOutputOptions object.

Public methods

boolean
@NonNull ParcelFileDescriptor

Gets the file descriptor 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)

getParcelFileDescriptor

Added in 1.1.0
public @NonNull ParcelFileDescriptor getParcelFileDescriptor()

Gets the file descriptor instance.

Returns
@NonNull ParcelFileDescriptor

the file descriptor used as the output destination.

hashCode

public int hashCode()

toString

public @NonNull String toString()