Builder for PrecisionFindingConfig.
Public Constructor Summary
|
Builder()
|
Public Method Summary
| PrecisionFindingConfig |
build()
Builds a new
PrecisionFindingConfig instance.
|
| PrecisionFindingConfig.Builder |
setArOdometryProvider(ArOdometryProvider
arOdometryProvider)
Provides an ARCore-based odometry provider to be used for precision finding.
|
| PrecisionFindingConfig.Builder |
setDataStalenessThreshold(Duration
dataStalenessThreshold)
Sets the timeout after which raw range measurements and estimates from the
precision finding algorithm are considered stale.
|
| PrecisionFindingConfig.Builder |
setDataStalenessThresholdMillis(long dataStalenessThresholdMillis)
Sets the timeout after which raw range measurements and estimates from the
precision finding algorithm are considered stale.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public PrecisionFindingConfig build ()
Builds a new PrecisionFindingConfig
instance.
public PrecisionFindingConfig.Builder setArOdometryProvider (ArOdometryProvider arOdometryProvider)
Provides an ARCore-based odometry provider to be used for precision finding. This is necessary if the client needs to share access to an existing ARCore session.
If not provided, an ARCore session will be created and managed internally. In this
case,
UwbClient.startRanging(RangingParameters, RangingSessionCallback) can fail
with the following status codes:
public PrecisionFindingConfig.Builder setDataStalenessThreshold (Duration dataStalenessThreshold)
Sets the timeout after which raw range measurements and estimates from the precision finding algorithm are considered stale.
This affects how often the
PreciseEstimateInfo.getEstimateKind of the reported data is recalculated.
Defaults to 1 second.
public PrecisionFindingConfig.Builder setDataStalenessThresholdMillis (long dataStalenessThresholdMillis)
Sets the timeout after which raw range measurements and estimates from the precision finding algorithm are considered stale.
This affects how often the
PreciseEstimateInfo.getEstimateKind of the reported data is recalculated.
Defaults to 1 second.
This is the recommended alternative for applications supporting API levels below 26,
as
setDataStalenessThreshold(Duration) is restricted to API 26+.