public class Parameters
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Parameters.Accuracy
Possible accuracy values.
|
Constructor and Description |
---|
Parameters(Parameters.Accuracy accuracy,
boolean backgroundModeEnabled)
Set the accuracy value and the given time interval and distance filter
specified for that value.
|
Parameters(Parameters.Accuracy accuracy,
long timeInterval,
float distanceFilter,
boolean backgroundModeEnabled)
Set the accuracy value, a time interval and distance filter.
|
Modifier and Type | Method and Description |
---|---|
Parameters.Accuracy |
getAccuracy() |
float |
getDistanceFilter() |
long |
getTimeInterval() |
boolean |
isBackgroundModeEnabled() |
java.lang.String |
toString() |
public Parameters(Parameters.Accuracy accuracy, boolean backgroundModeEnabled)
accuracy
- Desired accuracy in location updatesbackgroundModeEnabled
- allows position updates when the app is
running in backgroundpublic Parameters(Parameters.Accuracy accuracy, long timeInterval, float distanceFilter, boolean backgroundModeEnabled)
accuracy
- Desired accuracy in location updatestimeInterval
- minimum number of milliseconds between location
updates.distanceFilter
- minimum number of meters between location updates.backgroundModeEnabled
- allows position updates when the app is
running in backgroundpublic Parameters.Accuracy getAccuracy()
public long getTimeInterval()
public float getDistanceFilter()
public boolean isBackgroundModeEnabled()
public java.lang.String toString()
toString
in class java.lang.Object