public static final class OutdoorLocationOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Builder(OutdoorLocationOptions copy) |
Modifier and Type | Method and Description |
---|---|
OutdoorLocationOptions.Builder |
averageSnrThreshold(float averageSnrThreshold)
When detecting the environment, threshold over which must be the average SNR of the
satellites to detect outdoor.
|
OutdoorLocationOptions |
build() |
OutdoorLocationOptions.Builder |
burstInterval(int burstInterval)
The interval to scan for GPS and detect the environment (in seconds).
|
OutdoorLocationOptions.Builder |
continuousMode(boolean continuousMode)
Set the environment detection continuous mode (true) or burst mode (false).
|
OutdoorLocationOptions.Builder |
minNumberSatellitesToRunDetector(int minNumberSatellitesToRunDetector)
Deprecated.
Not used anymore with the new indoor-outdoor detector. Use
averageSnrThreshold(float) } instead |
OutdoorLocationOptions.Builder |
minPercentageToDetectOutdoor(float minPercentageToDetectOutdoor)
Deprecated.
Not used anymore with the new indoor-outdoor detector. Use
averageSnrThreshold(float) } instead |
OutdoorLocationOptions.Builder |
minSnrToUseSatellite(float minSnrToUseSatellite)
Deprecated.
Not used anymore with the new indoor-outdoor detector. Use
averageSnrThreshold(float) } instead |
OutdoorLocationOptions.Builder |
userDefinedThreshold(boolean userDefinedThreshold)
Set to true if the snr threshold to use is defined by the user.
|
public Builder()
public Builder(OutdoorLocationOptions copy)
public OutdoorLocationOptions.Builder continuousMode(boolean continuousMode)
burstInterval
)).
Default value is false
public OutdoorLocationOptions.Builder userDefinedThreshold(boolean userDefinedThreshold)
public OutdoorLocationOptions.Builder burstInterval(int burstInterval)
@Deprecated public OutdoorLocationOptions.Builder minNumberSatellitesToRunDetector(int minNumberSatellitesToRunDetector)
averageSnrThreshold(float)
} instead@Deprecated public OutdoorLocationOptions.Builder minSnrToUseSatellite(float minSnrToUseSatellite)
averageSnrThreshold(float)
} instead@Deprecated public OutdoorLocationOptions.Builder minPercentageToDetectOutdoor(float minPercentageToDetectOutdoor)
averageSnrThreshold(float)
} insteadminSnrToUseSatellite(float)
to detect outdoorpublic OutdoorLocationOptions.Builder averageSnrThreshold(float averageSnrThreshold)
OutdoorLocationOptions.DEFAULT_SNR
public OutdoorLocationOptions build()