ImageCapture.Metadata

public static final class ImageCapture.Metadata
extends Object

java.lang.Object
   ↳ androidx.camera.core.ImageCapture.Metadata


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

Summary

Public constructors

ImageCapture.Metadata()

Public methods

Location getLocation()

Gets the geographic location of the capture.

boolean isReversedHorizontal()

Gets left-right mirroring of the capture.

boolean isReversedVertical()

Gets upside-down mirroring of the capture.

void setLocation(Location location)

Sets the geographic location of the capture.

void setReversedHorizontal(boolean isReversedHorizontal)

Sets left-right mirroring of the capture.

void setReversedVertical(boolean isReversedVertical)

Sets upside-down mirroring of the capture.

Inherited methods

Public constructors

ImageCapture.Metadata

public ImageCapture.Metadata ()

Public methods

getLocation

public Location getLocation ()

Gets the geographic location of the capture.

Returns
Location the geographic location.

isReversedHorizontal

public boolean isReversedHorizontal ()

Gets left-right mirroring of the capture.

Returns
boolean true if the capture is left-right mirrored.

isReversedVertical

public boolean isReversedVertical ()

Gets upside-down mirroring of the capture.

Returns
boolean true if the capture is upside-down.

setLocation

public void setLocation (Location location)

Sets the geographic location of the capture.

Parameters
location Location: the geographic location.

setReversedHorizontal

public void setReversedHorizontal (boolean isReversedHorizontal)

Sets left-right mirroring of the capture.

Parameters
isReversedHorizontal boolean: true if the capture is left-right mirrored.

setReversedVertical

public void setReversedVertical (boolean isReversedVertical)

Sets upside-down mirroring of the capture.

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