PhotoFile

data class PhotoFile(val filePath: String, val width: Int, val height: Int, val orientation: CameraOrientation, val isMirrored: Boolean, val timestamp: Double, val isRawPhoto: Boolean, val containerFormat: PhotoContainerFormat)

A photo captured by CameraPhotoOutput.capturePhotoToFile and written to a file.

Constructors

Link copied to clipboard
constructor(filePath: String, width: Int, height: Int, orientation: CameraOrientation, isMirrored: Boolean, timestamp: Double, isRawPhoto: Boolean, containerFormat: PhotoContainerFormat)

Properties

Link copied to clipboard
Link copied to clipboard

The filesystem path of the file (not a file:// URL).

Link copied to clipboard
val height: Int

The height of the photo, in pixels.

Link copied to clipboard

Whether the photo is mirrored along its vertical axis.

Link copied to clipboard

Whether the photo is a RAW photo.

Link copied to clipboard

The CameraOrientation the photo was captured in, applied lazily through the file's EXIF metadata.

Link copied to clipboard

The time the photo was captured at, using the system's host clock, in seconds.

Link copied to clipboard
val width: Int

The width of the photo, in pixels.