public final class LocationRequest
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<LocationRequest> |
CREATOR |
static int |
PRIORITY_BALANCED_POWER_ACCURACY |
static int |
PRIORITY_HIGH_ACCURACY |
static int |
PRIORITY_LOW_POWER |
static int |
PRIORITY_NO_POWER |
| Modifier | Constructor and Description |
|---|---|
|
LocationRequest(LocationRequest incoming) |
protected |
LocationRequest(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
static LocationRequest |
create() |
static LocationRequest |
create(PidReader reader) |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
long |
getFastestInterval() |
long |
getInterval() |
int |
getPriority() |
float |
getSmallestDisplacement() |
int |
hashCode() |
LocationRequest |
setFastestInterval(long millis) |
LocationRequest |
setInterval(long millis) |
LocationRequest |
setPriority(int priority) |
LocationRequest |
setSmallestDisplacement(float meters) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
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 final android.os.Parcelable.Creator<LocationRequest> CREATOR
public LocationRequest(LocationRequest incoming)
protected LocationRequest(android.os.Parcel in)
public static LocationRequest create()
public static LocationRequest create(PidReader reader)
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)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable