Builder


class Builder
kotlin.Any
   ↳ android.ranging.SensorFusionParams.Builder

Builder class for creating instances of SensorFusionParams.

Summary

Public constructors

Public methods
SensorFusionParams

Builds a new instance of SensorFusionParams.

SensorFusionParams.Builder
setSensorFusionEnabled(sensorFusionEnabled: Boolean)

Sets whether to use sensor fusion.

Public constructors

Builder

Builder()

Public methods

build

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

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.