GravityNormEstimator

constructor(context: Context, sensorDelay: SensorDelay = SensorDelay.FASTEST, maxSamples: Int = DEFAULT_MAX_SAMPLES, maxDurationMillis: Long = DEFAULT_MAX_DURATION_MILLIS, stopMode: StopMode = StopMode.MAX_SAMPLES_OR_DURATION, completedListener: AccumulatedMeasurementEstimator.OnEstimationCompletedListener<GravityNormEstimator>? = null, unreliableListener: AccumulatedMeasurementEstimator.OnUnreliableListener<GravityNormEstimator>? = null, measurementListener: GravitySensorCollector.OnMeasurementListener? = null)

Parameters

maxSamples

Maximum number of samples to take into account before completion. This is only taken into account if using either StopMode.MAX_SAMPLES_ONLY or StopMode.MAX_SAMPLES_OR_DURATION.

maxDurationMillis

Maximum duration expressed in milliseconds to take into account before completion. This is only taken into account if using either StopMode.MAX_DURATION_ONLY or StopMode.MAX_SAMPLES_OR_DURATION.