# FileOutputOptions

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/FileOutputOptions.java+class:androidx.camera.video.FileOutputOptions) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/camera#1.1.0)

*** ** * ** ***


```
public final class FileOutputOptions extends OutputOptions
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.camera.video.OutputOptions](https://developer.android.com/reference/androidx/camera/video/OutputOptions) ||
|   | ↳ | [androidx.camera.video.FileOutputOptions](https://developer.android.com/reference/androidx/camera/video/FileOutputOptions) |

*** ** * ** ***

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 `https://developer.android.com/reference/android/os/ParcelFileDescriptor.html` as an output destination instead of a `https://developer.android.com/reference/java/io/File.html`, use `https://developer.android.com/reference/androidx/camera/video/FileDescriptorOutputOptions`.

## Summary

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

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/camera/video/FileOutputOptions#equals(java.lang.Object)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/Object.html o)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/io/File.html` | `https://developer.android.com/reference/androidx/camera/video/FileOutputOptions#getFile()()` Gets the File instance |
| `int` | `https://developer.android.com/reference/androidx/camera/video/FileOutputOptions#hashCode()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/camera/video/FileOutputOptions#toString()()` |

| ### Inherited Constants |
|---|
| From [androidx.camera.video.OutputOptions](https://developer.android.com/reference/androidx/camera/video/OutputOptions) |---|---| | `static final int` | `https://developer.android.com/reference/androidx/camera/video/OutputOptions#DURATION_UNLIMITED() = 0` Represents an unlimited duration. | | `static final int` | `https://developer.android.com/reference/androidx/camera/video/OutputOptions#FILE_SIZE_UNLIMITED() = 0` Represents an unbound file size. | |

| ### Inherited methods |
|---|
| From [androidx.camera.video.OutputOptions](https://developer.android.com/reference/androidx/camera/video/OutputOptions) |---|---| | `@https://developer.android.com/reference/androidx/annotation/IntRange(from = 0) long` | `https://developer.android.com/reference/androidx/camera/video/OutputOptions#getDurationLimitMillis()()` Gets the limit for the video duration in milliseconds. | | `@https://developer.android.com/reference/androidx/annotation/IntRange(from = 0) long` | `https://developer.android.com/reference/androidx/camera/video/OutputOptions#getFileSizeLimit()()` Gets the limit for the file size in bytes. | | `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/location/Location.html` | `https://developer.android.com/reference/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 methods

### equals

```
public boolean equals(@Nullable Object o)
```

### getFile

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

```
public @NonNull File getFile()
```

Gets the File instance

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```