java.lang.Object | |
↳ | com.urbanairship.location.LocationRequestOptions.Builder |
Builder to construct LocationRequestOptions.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LocationRequestOptions.Builder() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LocationRequestOptions |
create()
Creates the location request.
| ||||||||||
LocationRequestOptions.Builder |
setMinDistance(float meters)
Sets the min distance between location updates.
| ||||||||||
LocationRequestOptions.Builder |
setMinTime(long time, TimeUnit unit)
Sets the min time between location updates.
| ||||||||||
LocationRequestOptions.Builder |
setPriority(int priority)
Sets the priority of the location request.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates the location request.
Sets the min distance between location updates.
Defaults toDEFAULT_UPDATE_INTERVAL_METERS
meters | The distance in meters. |
---|
IllegalArgumentException | if distance is less than 0. |
---|
Sets the min time between location updates.
Defaults toDEFAULT_UPDATE_INTERVAL_MILLISECONDS
time | The duration. |
---|---|
unit | The unit of duration. |
IllegalArgumentException | if time is less than 0. |
---|
Sets the priority of the location request.
Defaults toDEFAULT_REQUEST_PRIORITY
priority | The priority. |
---|
IllegalArgumentException | if priority is not PRIORITY_HIGH_ACCURACY, PRIORITY_BALANCED_POWER_ACCURACY, PRIORITY_LOW_POWER, or PRIORITY_NO_POWER. |
---|