Image

data class Image(val uri: String, val byteArray: ByteArray, val date: Long, val geoLocation: GeoLocation)

Represents an image used in the map screens.

Constructors

Link copied to clipboard
constructor(uri: String, byteArray: ByteArray, date: Long, geoLocation: GeoLocation)

Properties

Link copied to clipboard

The ByteArray containing the raw image pixel data.

Link copied to clipboard
val date: Long

The milliseconds since epoch (1970-01-01T00:00:00Z) of when the photo was taken.

Link copied to clipboard

The coordinates of where the photo was taken.

Link copied to clipboard
val uri: String

The Android string uri of the image.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if two Image objects are equal. Two images are considered equal if they have the same:

Link copied to clipboard
open override fun hashCode(): Int

Calculates the hash code for this object based on its member variables.

Link copied to clipboard
fun Image.toImageEntity(geoLocationID: Long): ImageEntity

Converts Image into Image Entity using the geoLocationID foreign key to associate to a geolocation

Link copied to clipboard

Converts the Image model into the view object ImageViewData used to represent images in the UI.