requestLocationUpdates

fun requestLocationUpdates(provider: String? = null, minimumUpdateTimeMs: Long = 100, minimumUpdateDistance: Float = 0.0f): Result<Unit>

Changes the location update parameters to use the given provider, minimum update frequency, and minimum location distance change. Applies only when this SystemLocationDataSource's status is LocationDataSourceStatus.Started.

Since

200.8.0

Parameters

provider

a specific provider to use

minimumUpdateTimeMs

the minimum time interval at which location updates should be received, in milliseconds. Must be >= 0.

minimumUpdateDistance

the minimum distance between which location updates should be received, in meters. Must be >= 0.


fun requestLocationUpdates(criteria: Criteria? = null, provider: String? = null, minimumUpdateTimeMs: Long = 100, minimumUpdateDistance: Float = 0.0f): Result<Unit>

Deprecated

since 200.8.0. Criteria-based APIs are deprecated in favor of explicitly selecting the provider of interest (using the provider parameter) This method will be removed in a future release.

Replace with

requestLocationUpdates(String?, Long, Float)

Changes the location update parameters to use the given provider and/or Criteria, minimum update frequency, and minimum location distance change. Applies only when this SystemLocationDataSource's status is LocationDataSourceStatus.Started.

Since

200.0.0

Parameters

criteria

criteria for selecting a location provider

provider

a specific provider to use

minimumUpdateTimeMs

the minimum time interval at which location updates should be received, in milliseconds. Must be >= 0.

minimumUpdateDistance

the minimum distance between which location updates should be received, in meters. Must be >= 0.