public interface TiltSensorCallbackListener extends ServiceCallbackListener
Modifier and Type | Method and Description |
---|---|
void |
didUpdateAngle(TiltSensor sensor,
TiltSensor.TiltSensorAngle oldAngle,
TiltSensor.TiltSensorAngle newAngle)
Invoked when the tilt sensor has an updated value for angle.
|
void |
didUpdateCrash(TiltSensor sensor,
TiltSensor.TiltSensorCrash oldCrashValue,
TiltSensor.TiltSensorCrash newCrashValue)
Invoked when the tilt sensor has an updated value for crash readings.
|
void |
didUpdateDirection(TiltSensor sensor,
TiltSensor.TiltSensorDirection oldDirection,
TiltSensor.TiltSensorDirection newDirection)
Invoked when the tilt sensor has an updated value for direction.
|
didUpdateInputFormat, didUpdateValueData
void didUpdateDirection(TiltSensor sensor, TiltSensor.TiltSensorDirection oldDirection, TiltSensor.TiltSensorDirection newDirection)
sensor
- The tilt sensoroldDirection
- The previous directionnewDirection
- The new directionvoid didUpdateAngle(TiltSensor sensor, TiltSensor.TiltSensorAngle oldAngle, TiltSensor.TiltSensorAngle newAngle)
sensor
- The tilt sensoroldAngle
- The old anglenewAngle
- The new anglevoid didUpdateCrash(TiltSensor sensor, TiltSensor.TiltSensorCrash oldCrashValue, TiltSensor.TiltSensorCrash newCrashValue)
sensor
- The tilt sensoroldCrashValue
- The previous valuenewCrashValue
- The new crash value