Location

sealed class Location

A Geolocation of the system

Inheritors

Types

Link copied to clipboard
data class KnownLocation(val latitude: Double, val longitude: Double, val altitude: Double? = null, val horizontalAccuracy: Double? = null, val verticalAccuracy: Double? = null, val speed: Double? = null, val course: Double? = null, val time: KalugaDate) : Location

A Location where the current coordinates are known

Link copied to clipboard
sealed class UnknownLocation : Location

An location where the current coordinates are unknown.

Properties

Link copied to clipboard

Gets the Location.KnownLocation from a Location if it exists. Otherwise null is returned