LocationService

Abstracts high-level location requests (such as one-off current location) that may require platform-specific permission checks or hardware interactions.

Functions

Link copied to clipboard
abstract suspend fun getCurrentLocation(): Location?

Requests the current location, if permissions and hardware allow. Returns null if unavailable or if permissions are not granted.