# FileDescriptorOutputOptions

Artifact: [androidx.camera:camera-video](https://developer.android.com/jetpack/androidx/releases/camera) [View Source](https://cs.android.com/search?q=file:androidx/camera/video/FileDescriptorOutputOptions.java+class:androidx.camera.video.FileDescriptorOutputOptions) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/camera#1.1.0)

*** ** * ** ***


```
class FileDescriptorOutputOptions : OutputOptions
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.camera.video.OutputOptions](https://developer.android.com/reference/kotlin/androidx/camera/video/OutputOptions) ||
|   | ↳ | [androidx.camera.video.FileDescriptorOutputOptions](https://developer.android.com/reference/kotlin/androidx/camera/video/FileDescriptorOutputOptions) |

*** ** * ** ***

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 `https://developer.android.com/reference/kotlin/androidx/camera/video/PendingRecording#start(java.util.concurrent.Executor,androidx.core.util.Consumer<androidx.camera.video.VideoRecordEvent>)` returns. Application should not use the file referenced by this file descriptor until the recording is complete.

To use a `https://developer.android.com/reference/java/io/File.html` as an output destination instead of a file descriptor, use `https://developer.android.com/reference/kotlin/androidx/camera/video/FileOutputOptions`.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/camera/video/FileDescriptorOutputOptions.Builder` The builder of the `https://developer.android.com/reference/kotlin/androidx/camera/video/FileDescriptorOutputOptions` object. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/FileDescriptorOutputOptions#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://developer.android.com/reference/android/os/ParcelFileDescriptor.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/FileDescriptorOutputOptions#getParcelFileDescriptor()()` Gets the file descriptor instance. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/FileDescriptorOutputOptions#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/FileDescriptorOutputOptions#toString()()` |

| ### Inherited Constants |
|---|
| From [androidx.camera.video.OutputOptions](https://developer.android.com/reference/kotlin/androidx/camera/video/OutputOptions) |---|---| | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/OutputOptions#DURATION_UNLIMITED() = 0` Represents an unlimited duration. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/OutputOptions#FILE_SIZE_UNLIMITED() = 0` Represents an unbound file size. | |

| ### Inherited functions |
|---|
| From [androidx.camera.video.OutputOptions](https://developer.android.com/reference/kotlin/androidx/camera/video/OutputOptions) |---|---| | `@https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/OutputOptions#getDurationLimitMillis()()` Gets the limit for the video duration in milliseconds. | | `@https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/OutputOptions#getFileSizeLimit()()` Gets the limit for the file size in bytes. | | `https://developer.android.com/reference/android/location/Location.html?` | `https://developer.android.com/reference/kotlin/androidx/camera/video/OutputOptions#getLocation()()` Returns a `https://developer.android.com/reference/android/location/Location.html` object representing the geographic location where the video was recorded. | |

## Public functions

### equals

```
fun equals(o: Any?): Boolean
```

### getParcelFileDescriptor

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/camera#1.1.0)

```
fun getParcelFileDescriptor(): ParcelFileDescriptor
```

Gets the file descriptor instance.

| Returns |
|---|---|
| `https://developer.android.com/reference/android/os/ParcelFileDescriptor.html` | the file descriptor used as the output destination. |

### hashCode

```
fun hashCode(): Int
```

### toString

```
fun toString(): String
```