public final class LocationRequest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PRIORITY_BALANCED_POWER_ACCURACY |
static int |
PRIORITY_HIGH_ACCURACY |
static int |
PRIORITY_LOW_POWER |
static int |
PRIORITY_NO_POWER |
| Modifier and Type | Method and Description |
|---|---|
static LocationRequest |
create() |
long |
getFastestInterval() |
long |
getInterval() |
int |
getPriority() |
float |
getSmallestDisplacement() |
LocationRequest |
setFastestInterval(long millis) |
LocationRequest |
setInterval(long millis) |
LocationRequest |
setPriority(int priority) |
LocationRequest |
setSmallestDisplacement(float meters) |
public static final int PRIORITY_HIGH_ACCURACY
public static final int PRIORITY_BALANCED_POWER_ACCURACY
public static final int PRIORITY_LOW_POWER
public static final int PRIORITY_NO_POWER
public static LocationRequest create()
public long getInterval()
public LocationRequest setInterval(long millis)
public long getFastestInterval()
public LocationRequest setFastestInterval(long millis)
public float getSmallestDisplacement()
public LocationRequest setSmallestDisplacement(float meters)
public int getPriority()
public LocationRequest setPriority(int priority)