A builder for LastLocationRequest.
|
Builder()
Constructs a new builder with default values.
|
|
|
Builder(LastLocationRequest
request)
Constructs a new builder with values copied from the given
LastLocationRequest.
|
| LastLocationRequest |
build()
Builds a new
LastLocationRequest.
|
| LastLocationRequest.Builder |
setGranularity(int granularity)
Sets the
Granularity
of locations returned for this request.
|
| LastLocationRequest.Builder |
setMaxUpdateAgeMillis(long maxUpdateAgeMillis)
Sets the maximum age of any location returned for this request.
|
Constructs a new builder with default values.
Constructs a new builder with values copied from the given LastLocationRequest.
Builds a new LastLocationRequest.
Sets the Granularity
of locations returned for this request. This controls whether fine or coarse locations
may be returned.
The default value is
Granularity.GRANULARITY_PERMISSION_LEVEL.
Sets the maximum age of any location returned for this request. A value of
Long.MAX_VALUE
represents an effectively unbounded maximum age.
The default value is Long.MAX_VALUE.