SystemLocationDataSource

constructor(userProvider: String? = null, minimumUpdateTimeMs: Long = 100, minimumUpdateDistance: Float = 0.0f)

Creates a SystemLocationDataSource.

Since

200.8.0

Parameters

userProvider

a specific provider to use with this SystemLocationDataSource

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.

Throws


constructor(criteria: Criteria? = null, userProvider: String? = null, minimumUpdateTimeMs: Long = 100, minimumUpdateDistance: Float = 0.0f)

Deprecated

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

Replace with

SystemLocationDataSource(String?, Long, Float)

Creates a SystemLocationDataSource.

Since

200.1.0

Parameters

criteria

criteria for selecting a location provider

userProvider

a specific provider to use with this SystemLocationDataSource

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.

Throws