Package-level declarations

Types

Link copied to clipboard
interface Geolocator

Provides geolocation operations:

Link copied to clipboard
sealed interface GeolocatorResult

Represents the result of a geolocation operation.

Link copied to clipboard
class LocationRequest(val priority: Priority = Priority.Balanced, val interval: Long = 5000, val maximumAge: Long = 0)

Represents a request for location updates.

Link copied to clipboard
interface Locator

Wrapper for platform specific geolocation services.

Link copied to clipboard

A no-op Locator that is used when the platform does not support geolocation.

Link copied to clipboard

Defines a Locator that requires a permission to check location.

Link copied to clipboard
sealed interface TrackingStatus

Represents the current status of a Geolocator tracking operation.

Functions

Link copied to clipboard

Gets the current location or null if the location is not available.

Link copied to clipboard
fun Geolocator(locator: Locator, dispatcher: CoroutineDispatcher = Dispatchers.Default): Geolocator

Create a new Geolocator using the provided locator and dispatcher.

Link copied to clipboard

Check if the current Geolocator has the permissions required for geolocation.