Added in API level Baklava
Builder
class Builder
kotlin.Any | |
↳ | 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.Builder |
setSensorFusionEnabled(sensorFusionEnabled: Boolean) Sets whether to use sensor fusion. |
Public constructors
Public methods
build
Added in API level Baklava
fun build(): SensorFusionParams
Builds a new instance of SensorFusionParams
.
Return | |
---|---|
SensorFusionParams |
a new SensorFusionParams instance created using the current state of the builder. This value cannot be null . |
setSensorFusionEnabled
Added in API level Baklava
fun setSensorFusionEnabled(sensorFusionEnabled: Boolean): SensorFusionParams.Builder
Sets whether to use sensor fusion.
defaults to true.
Parameters | |
---|---|
sensorFusionEnabled |
Boolean: true to enable sensor fusion; false to disable it. |
Return | |
---|---|
SensorFusionParams.Builder |
this Builder instance for method chaining. This value cannot be null . |