public interface MotionSensorCallbackListener extends ServiceCallbackListener
Modifier and Type | Method and Description |
---|---|
void |
didUpdateCount(MotionSensor sensor,
int count)
Invoked when the motion sensor has an updated count value
|
void |
didUpdateDistance(MotionSensor sensor,
float oldDistance,
float newDistance)
Invoked when the motion sensor has an updated distance value
|
didUpdateInputFormat, didUpdateValueData
void didUpdateDistance(MotionSensor sensor, float oldDistance, float newDistance)
sensor
- The sensor that has a new valueoldDistance
- The previous distance readingnewDistance
- The new distance readingvoid didUpdateCount(MotionSensor sensor, int count)
sensor
- The sensor that has a new valuecount
- The new value