rememberDefaultLocationProvider
@Composable
@RequiresPermission(anyOf = ["android.permission.ACCESS_FINE_LOCATION", "android.permission.ACCESS_COARSE_LOCATION"] )
@Composable
Create and remember a LocationProvider using the default implementation for the platform.
The configuration parameters updateInterval, desiredAccuracy and minDistanceMeters may all be ignored, if the platform doesn't support them
NOTE: There are also platform-specific remember*LocationProvider functions you may want to use, if you need more control over the configuration.
Parameters
updateInterval
the desired interval for updates
desiredAccuracy
the DesiredAccuracy for location updates
minDistanceMeters
the minimum distance between locations to trigger an update
See also
Throws
if LocationProvider no default LocationProvider is provided for the platform
if the necessary platform permissions have not been granted, use rememberNullLocationProvider as a fallback
@Composable
@Composable
@Composable