ImageCapture.Metadata
public final class ImageCapture.Metadata
Holder class for metadata that will be saved with captured images.
Summary
Public constructors |
|---|
Metadata() |
Public methods |
|
|---|---|
@Nullable Location |
Gets the geographic location of the capture. |
boolean |
Gets left-right mirroring of the capture. |
boolean |
Gets upside-down mirroring of the capture. |
void |
setLocation(@Nullable 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. |
@NonNull String |
toString() |
Public constructors
Public methods
getLocation
public @Nullable Location getLocation()
Gets the geographic location of the capture.
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(@Nullable Location location)
Sets the geographic location of the capture.
setReversedHorizontal
public void setReversedHorizontal(boolean isReversedHorizontal)
Sets left-right mirroring of the capture.
| Parameters | |
|---|---|
boolean isReversedHorizontal |
true if the capture is left-right mirrored. |
setReversedVertical
public void setReversedVertical(boolean isReversedVertical)
Sets upside-down mirroring of the capture.
| Parameters | |
|---|---|
boolean isReversedVertical |
true if the capture is upside-down. |