AI-generated Key Takeaways
-
LastLocationRequest encapsulates parameters for requesting a cached last location through FusedLocationProviderClient.
-
It includes methods to get the granularity and the maximum age of locations returned for the request.
-
LastLocationRequest implements the Parcelable interface.
-
A builder class, LastLocationRequest.Builder, is available for creating LastLocationRequest instances.
An encapsulation of various parameters for requesting a (cached) last location through FusedLocationProviderClient
.
Nested Class Summary
Inherited Constant Summary
Field Summary
| public static final Creator < LastLocationRequest > | CREATOR |
Public Method Summary
| boolean | |
| int | |
| long | |
| int | hashCode
()
|
| String | toString
()
|
| void |
Inherited Method Summary
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.

