# 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)

*** ** * ** ***


```
class FileOutputOptions : 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.FileOutputOptions](https://developer.android.com/reference/kotlin/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/kotlin/androidx/camera/video/FileDescriptorOutputOptions`.

## Summary

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

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/FileOutputOptions#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://developer.android.com/reference/java/io/File.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/FileOutputOptions#getFile()()` Gets the File instance |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/FileOutputOptions#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/video/FileOutputOptions#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
```

### getFile

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

```
fun getFile(): File
```

Gets the File instance

### hashCode

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

### toString

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