# ImageCapture.Metadata

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

*** ** * ** ***


```
class ImageCapture.Metadata
```

<br />

*** ** * ** ***

Holder class for metadata that will be saved with captured images.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.Metadata#Metadata()()` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/android/location/Location.html?` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.Metadata#getLocation()()` Gets the geographic location of the capture. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.Metadata#isReversedHorizontal()()` Gets left-right mirroring of the capture. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.Metadata#isReversedVertical()()` Gets upside-down mirroring of the capture. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.Metadata#setLocation(android.location.Location)(location: https://developer.android.com/reference/android/location/Location.html?)` Sets the geographic location of the capture. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.Metadata#setReversedHorizontal(boolean)(isReversedHorizontal: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Sets left-right mirroring of the capture. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.Metadata#setReversedVertical(boolean)(isReversedVertical: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Sets upside-down mirroring of the capture. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/core/ImageCapture.Metadata#toString()()` |

## Public constructors

### Metadata

Added in 1.0.0

```
Metadata()
```

## Public functions

### getLocation

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

```
fun getLocation(): Location?
```

Gets the geographic location of the capture.

| Returns |
|---|---|
| `https://developer.android.com/reference/android/location/Location.html?` | the geographic location. |

### isReversedHorizontal

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

```
fun isReversedHorizontal(): Boolean
```

Gets left-right mirroring of the capture.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the capture is left-right mirrored. |

### isReversedVertical

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

```
fun isReversedVertical(): Boolean
```

Gets upside-down mirroring of the capture.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the capture is upside-down. |

### setLocation

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

```
fun setLocation(location: Location?): Unit
```

Sets the geographic location of the capture.

| Parameters |
|---|---|
| `location: https://developer.android.com/reference/android/location/Location.html?` | the geographic location. |

### setReversedHorizontal

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

```
fun setReversedHorizontal(isReversedHorizontal: Boolean): Unit
```

Sets left-right mirroring of the capture.

| Parameters |
|---|---|
| `isReversedHorizontal: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the capture is left-right mirrored. |

### setReversedVertical

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

```
fun setReversedVertical(isReversedVertical: Boolean): Unit
```

Sets upside-down mirroring of the capture.

| Parameters |
|---|---|
| `isReversedVertical: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the capture is upside-down. |

### toString

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