public class LocationEngineRequest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LocationEngineRequest.Builder |
Modifier and Type | Field and Description |
---|---|
static int |
PRIORITY_BALANCED_POWER_ACCURACY
Used with
LocationEngineRequest.Builder.setPriority(int) to request
coarse location that is battery optimized. |
static int |
PRIORITY_HIGH_ACCURACY
Used with
LocationEngineRequest.Builder.setPriority(int) to request
the most accurate location. |
static int |
PRIORITY_LOW_POWER
Used with
LocationEngineRequest.Builder.setPriority(int) to request
coarse ~ 10 km accuracy location. |
static int |
PRIORITY_NO_POWER
Used with
LocationEngineRequest.Builder.setPriority(int) to request
passive location: no locations will be returned unless a different client
has requested location updates. |
Modifier and Type | Method and Description |
---|---|
float |
getDisplacement()
Returns distance between location updates.
|
long |
getFastestInterval()
Returns fastest interval in milliseconds for location updates.
|
long |
getInterval()
Returns desired interval between location updates
in milliseconds.
|
long |
getMaxWaitTime()
Returns maximum wait time in milliseconds for location updates.
|
int |
getPriority()
Returns desired quality of the request.
|
public static final int PRIORITY_HIGH_ACCURACY
LocationEngineRequest.Builder.setPriority(int)
to request
the most accurate location.public static final int PRIORITY_BALANCED_POWER_ACCURACY
LocationEngineRequest.Builder.setPriority(int)
to request
coarse location that is battery optimized.public static final int PRIORITY_LOW_POWER
LocationEngineRequest.Builder.setPriority(int)
to request
coarse ~ 10 km accuracy location.public static final int PRIORITY_NO_POWER
LocationEngineRequest.Builder.setPriority(int)
to request
passive location: no locations will be returned unless a different client
has requested location updates.public long getInterval()
public int getPriority()
public float getDisplacement()
public long getMaxWaitTime()
public long getFastestInterval()
© 2017–2018 Mapbox. All rights reserved.