SensorFusionParams.Builder


public static final class SensorFusionParams.Builder
extends Object

java.lang.Object
   ↳ android.ranging.SensorFusionParams.Builder


Builder class for creating instances of SensorFusionParams.

Summary

Public constructors

Builder()

Public methods

SensorFusionParams build()

Builds a new instance of SensorFusionParams.

SensorFusionParams.Builder setSensorFusionEnabled(boolean sensorFusionEnabled)

Sets whether to use sensor fusion.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public SensorFusionParams build ()

Builds a new instance of SensorFusionParams.

Returns
SensorFusionParams a new SensorFusionParams instance created using the current state of the builder. This value cannot be null.

setSensorFusionEnabled

public SensorFusionParams.Builder setSensorFusionEnabled (boolean sensorFusionEnabled)

Sets whether to use sensor fusion.

defaults to true.

Parameters
sensorFusionEnabled boolean: true to enable sensor fusion; false to disable it.

Returns
SensorFusionParams.Builder this Builder instance for method chaining. This value cannot be null.