FileDescriptorOutputOptions


class FileDescriptorOutputOptions : 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 functions

Boolean
equals(o: Any?)
ParcelFileDescriptor

Gets the file descriptor instance.

Int
String

Inherited Constants

From androidx.camera.video.OutputOptions
const Int

Represents an unlimited duration.

const Int

Represents an unbound file size.

Inherited functions

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.

Location?

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

Public functions

equals

fun equals(o: Any?): Boolean

getParcelFileDescriptor

Added in 1.1.0
fun getParcelFileDescriptor(): ParcelFileDescriptor

Gets the file descriptor instance.

Returns
ParcelFileDescriptor

the file descriptor used as the output destination.

hashCode

fun hashCode(): Int

toString

fun toString(): String