public static interface Accelerometer.TapConfig extends Accelerometer.ThresholdConfig
Modifier and Type | Method and Description |
---|---|
Accelerometer.TapConfig |
withDuration(float duration)
Sets the pulse time limit
|
Accelerometer.TapConfig |
withLatency(float latency)
Set the latency value
|
Accelerometer.TapConfig |
withLowPassFilter(boolean enabled)
Set how the tap detection should processes the data
|
Accelerometer.TapConfig |
withWindow(float window)
Set the window value
|
withThreshold
getBytes, withSilentMode
Accelerometer.TapConfig withDuration(float duration)
duration
- Max time, in ms, a pulse event has to exceed the threshold and
return below the thresholdAccelerometer.TapConfig withLatency(float latency)
latency
- Wait time, in ms, between the end of the 1st shock and
when the 2nd shock can be detectedAccelerometer.TapConfig withWindow(float window)
window
- Time, in ms, in which a second shock must begin after
the latency expiresAccelerometer.TapConfig withLowPassFilter(boolean enabled)
enabled
- True if low pass filter should be enabled for tap detection