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

*** ** * ** ***


```
public final class ImageCapture.Metadata
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public methods |
|---|---|
| `@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/core/ImageCapture.Metadata#getLocation()()` Gets the geographic location of the capture. |
| `boolean` | `https://developer.android.com/reference/androidx/camera/core/ImageCapture.Metadata#isReversedHorizontal()()` Gets left-right mirroring of the capture. |
| `boolean` | `https://developer.android.com/reference/androidx/camera/core/ImageCapture.Metadata#isReversedVertical()()` Gets upside-down mirroring of the capture. |
| `void` | `https://developer.android.com/reference/androidx/camera/core/ImageCapture.Metadata#setLocation(android.location.Location)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/location/Location.html location)` Sets the geographic location of the capture. |
| `void` | `https://developer.android.com/reference/androidx/camera/core/ImageCapture.Metadata#setReversedHorizontal(boolean)(boolean isReversedHorizontal)` Sets left-right mirroring of the capture. |
| `void` | `https://developer.android.com/reference/androidx/camera/core/ImageCapture.Metadata#setReversedVertical(boolean)(boolean isReversedVertical)` Sets upside-down mirroring of the capture. |
| `@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/core/ImageCapture.Metadata#toString()()` |

## Public constructors

### Metadata

Added in 1.0.0

```
public Metadata()
```

## Public methods

### getLocation

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

```
public @Nullable Location getLocation()
```

Gets the geographic location of the capture.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html 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)

```
public boolean isReversedHorizontal()
```

Gets left-right mirroring of the capture.

| Returns |
|---|---|
| `boolean` | 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)

```
public boolean isReversedVertical()
```

Gets upside-down mirroring of the capture.

| Returns |
|---|---|
| `boolean` | true if the capture is upside-down. |

### setLocation

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

```
public void setLocation(@Nullable Location location)
```

Sets the geographic location of the capture.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/location/Location.html location` | the geographic location. |

### setReversedHorizontal

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

```
public void setReversedHorizontal(boolean isReversedHorizontal)
```

Sets left-right mirroring of the capture.

| Parameters |
|---|---|
| `boolean isReversedHorizontal` | 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)

```
public void setReversedVertical(boolean isReversedVertical)
```

Sets upside-down mirroring of the capture.

| Parameters |
|---|---|
| `boolean isReversedVertical` | true if the capture is upside-down. |

### toString

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