public final class

ImageCapture.Metadata

extends java.lang.Object

 java.lang.Object

↳androidx.camera.core.ImageCapture.Metadata

Overview

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

Summary

Constructors
publicMetadata()

Methods
public LocationgetLocation()

Gets the geographic location of the capture.

public booleanisReversedHorizontal()

Gets left-right mirroring of the capture.

public booleanisReversedHorizontalSet()

Returns true if ImageCapture.Metadata.setReversedHorizontal(boolean) has been called.

public booleanisReversedVertical()

Gets upside-down mirroring of the capture.

public voidsetLocation(Location location)

Sets the geographic location of the capture.

public voidsetReversedHorizontal(boolean isReversedHorizontal)

Sets left-right mirroring of the capture.

public voidsetReversedVertical(boolean isReversedVertical)

Sets upside-down mirroring of the capture.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Metadata()

Methods

public boolean isReversedHorizontal()

Gets left-right mirroring of the capture.

Returns:

true if the capture is left-right mirrored.

public boolean isReversedHorizontalSet()

Returns true if ImageCapture.Metadata.setReversedHorizontal(boolean) has been called.

CameraController's default behavior is mirroring the picture when front camera is used. This method is used to check if reverseHorizontal is set explicitly by the app.

public void setReversedHorizontal(boolean isReversedHorizontal)

Sets left-right mirroring of the capture.

Parameters:

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

public boolean isReversedVertical()

Gets upside-down mirroring of the capture.

Returns:

true if the capture is upside-down.

public void setReversedVertical(boolean isReversedVertical)

Sets upside-down mirroring of the capture.

Parameters:

isReversedVertical: true if the capture is upside-down.

public Location getLocation()

Gets the geographic location of the capture.

Returns:

the geographic location.

public void setLocation(Location location)

Sets the geographic location of the capture.

Parameters:

location: the geographic location.