ru.dgis.sdk.positioning.DefaultLocationSource | Android SDK | 2GIS Documentation
Android SDK

DefaultLocationSource

Implementation of the default location source, which is recommended. If present, GMS uses them, otherwise - LocationManager.

DefaultLocationSource(context: Context)

Implementation of the default location source, which is recommended. If present, GMS uses them, otherwise - LocationManager.

Parameters
context
Returns
Methods
Properties

Currently best known geolocation. If there is no currently known geolocation, null is returned. The returned geolocation may be unreliable, such as being out of date and/or not meeting the required accuracy.

Whether or not to use GMS.