public class LightSensorEvent extends SensorEvent<LightSensor>
source
Constructor and Description |
---|
LightSensorEvent(SensorEvent<SensorValue> sensorEvent)
Creates a LightSensorEvent from a generic
SensorEvent , and wraps
the SensorValue in the appropriate subclass. |
getInput, getNewValue, getOldValue, getValue, toString
getSource
public LightSensorEvent(SensorEvent<SensorValue> sensorEvent)
SensorEvent
, and wraps
the SensorValue
in the appropriate subclass.sensorEvent
- generic sensor eventCopyright © 2016–2023. All rights reserved.