Package-level declarations

Types

Link copied to clipboard
abstract class BaseLocationManager(settings: BaseLocationManager.Settings, coroutineScope: CoroutineScope) : LocationManager, CoroutineScope

An abstract implementation for LocationManager

Link copied to clipboard
abstract class BaseLocationStateRepo(createNotInitializedState: () -> LocationState.NotInitialized, createInitializingState: suspend ColdStateFlowRepo<LocationState>.(LocationState.Inactive) -> suspend () -> LocationState.Initializing, createDeinitializingState: suspend ColdStateFlowRepo<LocationState>.(LocationState.Active) -> suspend () -> LocationState.Deinitialized, coroutineContext: CoroutineContext) : ColdStateFlowRepo<LocationState>

An abstract ColdStateFlowRepo for managing LocationState

Link copied to clipboard

Builder for creating a LocationStateRepo

Link copied to clipboard

A default implementation of BaseLocationManager

A default implementation of BaseLocationManager

A default implementation of BaseLocationManager

A default implementation of BaseLocationManager

A default implementation of BaseLocationManager

Link copied to clipboard

Default implementation of LocationMonitor

class DefaultLocationMonitor(locationManager: <Error class: unknown class>) : LocationMonitor

Default implementation of LocationMonitor

Link copied to clipboard
data class DMSCoordinate(val degrees: Int, val minutes: Int, val seconds: Double, val windDirection: DMSCoordinate.WindDirection)

A Location coordinate defined by degrees, minutes and seconds.

Link copied to clipboard
class GoogleLocationProvider(context: Context, settings: GoogleLocationProvider.Settings, minUpdateDistanceMeters: Float) : LocationProvider

A LocationProvider using the Google Location Services

Link copied to clipboard

A BroadcastReceiver for receiving updates to a Google Location from the background

Link copied to clipboard
sealed class Location

A Geolocation of the system

Link copied to clipboard
interface LocationManager

Manages monitoring for Location

Link copied to clipboard
actual interface LocationMonitor : ServiceMonitor

A ServiceMonitor that monitors whether the location service is enabled

expect interface LocationMonitor : ServiceMonitor

A ServiceMonitor that monitors whether the location service is enabled

actual interface LocationMonitor

A ServiceMonitor that monitors whether the location service is enabled

actual interface LocationMonitor : ServiceMonitor

A ServiceMonitor that monitors whether the location service is enabled

actual interface LocationMonitor : ServiceMonitor

A ServiceMonitor that monitors whether the location service is enabled

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A StateRepo/MutableStateFlow of LocationState

Link copied to clipboard
open class LocationStateImplRepo(createLocationManager: suspend () -> LocationManager, coroutineContext: CoroutineContext) : BaseLocationStateRepo

Properties

Link copied to clipboard

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

Link copied to clipboard
val <Error class: unknown class>.knownLocation: <Error class: unknown class>

The Location.KnownLocation of a CLLocation

Link copied to clipboard

Converts a Nullable Location.KnownLocation into a Location, where Location.UnknownLocation.WithoutLastLocation is returned if the location was null.

Functions

Link copied to clipboard
fun Flow<Location>.known(maxAge: Duration = 0.seconds): Flow<Location.KnownLocation?>

Transforms a Flow of LocationState into a flow of its associated optional Location.KnownLocation

Link copied to clipboard
fun Flow<LocationState>.location(): Flow<Location>

Transforms a Flow of LocationState into a flow of its associated Location

Link copied to clipboard

Converts a LocationResult to a list of Location.KnownLocation