LastLocationRequest

public final class LastLocationRequest extends Object
implements Parcelable

An encapsulation of various parameters for requesting a (cached) last location through FusedLocationProviderClient.

Nested Class Summary

Inherited Constant Summary

int CONTENTS_FILE_DESCRIPTOR
int PARCELABLE_WRITE_RETURN_VALUE

Field Summary

public static final Creator<LastLocationRequest> CREATOR

Public Method Summary

boolean
equals(Object object)
int
getGranularity()
The Granularity of locations returned for this request.
long
getMaxUpdateAgeMillis()
The maximum age of any location returned for this request.
int
String
void
writeToParcel(Parcel parcel, int flags)

Inherited Method Summary

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
abstract int
describeContents()
abstract void
writeToParcel(Parcel arg0, int arg1)

Fields

public static final Creator<LastLocationRequest> CREATOR

Public Methods

public boolean equals (Object object)

public int getGranularity ()

The Granularity of locations returned for this request. This controls whether fine or coarse locations may be returned.

public long getMaxUpdateAgeMillis ()

The maximum age of any location returned for this request. A value of Long.MAX_VALUE represents an effectively unbounded maximum age.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel parcel, int flags)