Package-level declarations

Types

Link copied to clipboard

How updateCamera updates camera bearing.

Link copied to clipboard

Current state of device-heading collection managed by rememberLocationState.

Link copied to clipboard
sealed interface LocationChangeScope

The measurements that triggered a LocationTrackingEffect callback.

Link copied to clipboard

Lifecycle-aware state for foreground location and heading tracking.

Link copied to clipboard

Current state of the foreground location updates managed by rememberLocationState.

Functions

Link copied to clipboard
fun LocationTrackingEffect(locationState: LocationState, enabled: Boolean = true, trackBearing: Boolean = true, onLocationChange: suspend LocationChangeScope.() -> Unit)

A form of LaunchedEffect that is specialized for tracking user location.

Link copied to clipboard

Returns the most accurate bearing measurement available.

Link copied to clipboard

Returns the estimated error of mostAccurateBearing, or null when unknown.

Link copied to clipboard

Creates and remembers the default heading provider for the current platform.

Creates and remembers the default heading provider for the current platform.

Creates and remembers the default heading provider for the current platform.

Creates and remembers the default heading provider for the current platform.

Creates and remembers the default heading provider for the current platform.

Creates and remembers the default heading provider for the current platform.

Link copied to clipboard

Creates and remembers the default location provider for the current platform.

Creates and remembers the default location provider for the current platform.

Creates and remembers the default location provider for the current platform.

Creates and remembers the default location provider for the current platform.

Creates and remembers the default location provider for the current platform.

Creates and remembers the default location provider for the current platform.

Link copied to clipboard
fun rememberLocationState(provider: LocationProvider = rememberDefaultLocationProvider(), request: LocationRequest = LocationRequest.Standard, headingProvider: HeadingProvider = NoHeadingProvider, headingRequest: HeadingRequest = HeadingRequest.Standard, enabled: Boolean = true, lifecycleOwner: LifecycleOwner = LocalLifecycleOwner.current, minActiveState: Lifecycle.State = Lifecycle.State.STARTED): LocationState

Remembers foreground location and heading state.

Link copied to clipboard

Creates and remembers the platform SystemSettingsLauncher.

Link copied to clipboard
suspend fun LocationChangeScope.updateCamera(mapState: MapState, animation: CameraAnimation? = CameraAnimation.Ease.Standard, updateBearing: BearingUpdate = BearingUpdate.TrackAutomatic)

Convenience method for keeping mapState in sync with the location change that triggered this LocationTrackingEffect callback.