Metadata
class Metadata
kotlin.Any | |
↳ | androidx.camera.core.ImageCapture.Metadata |
Holder class for metadata that will be saved with captured images.
Summary
Public constructors | |
---|---|
<init>() Holder class for metadata that will be saved with captured images. |
Public methods | |
---|---|
Location? |
Gets the geographic location of the capture. |
Boolean |
Gets left-right mirroring of the capture. |
Boolean |
Gets upside-down mirroring of the capture. |
Unit |
setLocation(@Nullable location: Location?) Sets the geographic location of the capture. |
Unit |
setReversedHorizontal(isReversedHorizontal: Boolean) Sets left-right mirroring of the capture. |
Unit |
setReversedVertical(isReversedVertical: Boolean) Sets upside-down mirroring of the capture. |
Public constructors
<init>
Metadata()
Holder class for metadata that will be saved with captured images.
Public methods
getLocation
@Nullable fun getLocation(): Location?
Gets the geographic location of the capture.
Return | |
---|---|
Location? |
the geographic location. |
isReversedHorizontal
fun isReversedHorizontal(): Boolean
Gets left-right mirroring of the capture.
Return | |
---|---|
Boolean |
true if the capture is left-right mirrored. |
isReversedVertical
fun isReversedVertical(): Boolean
Gets upside-down mirroring of the capture.
Return | |
---|---|
Boolean |
true if the capture is upside-down. |
setLocation
fun setLocation(@Nullable location: Location?): Unit
Sets the geographic location of the capture.
Parameters | |
---|---|
location |
Location?: the geographic location. |
setReversedHorizontal
fun setReversedHorizontal(isReversedHorizontal: Boolean): Unit
Sets left-right mirroring of the capture.
Parameters | |
---|---|
isReversedHorizontal |
Boolean: true if the capture is left-right mirrored. |