public class LocationSourceFactory
extends java.lang.Object
| Constructor and Description |
|---|
LocationSourceFactory() |
| Modifier and Type | Method and Description |
|---|---|
LocationSource |
createDefaultLocationSource(android.content.Context context,
LocationUpdateListener locationUpdateListener)
Creates default location source.
|
LocationSource |
createDefaultLocationSource(android.content.Context context,
LocationUpdateListener locationUpdateListener,
com.google.android.gms.location.LocationRequest locationRequest)
Creates default location source.
|
public LocationSource createDefaultLocationSource(android.content.Context context, LocationUpdateListener locationUpdateListener)
context - - Android ContextlocationUpdateListener - - the location update listener which is common listener for both Basic and Fused location sourcespublic LocationSource createDefaultLocationSource(android.content.Context context, LocationUpdateListener locationUpdateListener, com.google.android.gms.location.LocationRequest locationRequest)
context - - Android ContextlocationUpdateListener - - the location update listener which is common listener for both Basic and Fused location sourceslocationRequest - - LocationRequest of Google Location Services which is used if the GLS are present at the device.