getLatestLocation

open fun getLatestLocation(): Result<Location, OutageReason>

Latest device location, that is known to HyperTrack SDK.

Device location is constantly refreshed while the sdk is tracking, so the returned location represents current device location. Since the sdk uses accelerometer, gyroscope and other sensor data to optimize power consumption, this could be location computed seconds or minutes ago. If the location can't be retrieved for whatever reason (SDK isn't tracking, missing permissions, location services were disabled etc) null is returned.

Return

latest device location, that is known to HyperTrack SDK or null, if it's unknown.

See also