-
public class LocationProviderResolverDecides the location source from the server
location.providerflag + GMS availability. Shared by LocationManager (which path to register) andMetadataCollector(what to report to the server), so the two always agree.
-
-
Field Summary
Fields Modifier and Type Field Description public final static LocationProviderResolverINSTANCE
-
Method Summary
Modifier and Type Method Description final BooleanisGmsAvailable(Context context)True if Google Play Services is present and usable on this device. final Stringresolve(Context context, LocationConfiguration config)"fused" when the config selects GMS and Play Services is available; otherwise "legacy". -
-
Method Detail
-
isGmsAvailable
final Boolean isGmsAvailable(Context context)
True if Google Play Services is present and usable on this device.
-
resolve
final String resolve(Context context, LocationConfiguration config)
"fused" when the config selects GMS and Play Services is available; otherwise "legacy".
-
-
-
-