public interface SensorReadListener
SensorEventAgent
instance.
The events passed to this listener's methods are ephemeral; they
are only valid until the listener has returned. If a listener needs to
retain the event it must be copied using the
SensorEvent(SensorEvent)
constructor.
SensorEvent
,
SensorEventAgent
,
SensorButtonListener
Modifier and Type | Method and Description |
---|---|
void |
read(SensorEvent e)
This method is called each time the
dispatchEvents
method of SensorEventAgent is called and none of a
sensor's buttons have been handled by a button listener. |
void read(SensorEvent e)
dispatchEvents
method of SensorEventAgent
is called and none of a
sensor's buttons have been handled by a button listener. The
sensor read value has not necessarily changed since the last read
event.e
- the sensor event