public static interface Accelerometer.ThresholdConfig extends Accelerometer.AccelerometerConfig
Modifier and Type | Method and Description |
---|---|
Accelerometer.ThresholdConfig |
withThreshold(float gravity)
Sets the detection threshold
|
getBytes, withSilentMode
Accelerometer.ThresholdConfig withThreshold(float gravity)
gravity
- Threshold of the sensor, in Gs