LocationState

The current state of rememberLocation.

Properties

Link copied to clipboard
abstract val currentLocation: Location?

The last known user Location, or null if no location has been reported yet (e.g. because the permission has not been granted, or because the device is still acquiring a fix).

Link copied to clipboard
abstract val hasPermission: Boolean

Whether the app has been granted permission to access the user's location.

Functions

Link copied to clipboard
abstract suspend fun requestPermission(): Boolean

Requests the location permission from the user.