Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## lejos.nxt
Interface SensorPortListener

    public interface SensorPortListener

Interface for monitoring changes to the value for an Analogue/Digital sensor (such as a Touch, Light or Sound sensor) on a SensorPort.

Method Summary
`void` | `stateChanged(SensorPort aSource, int aOldValue, int aNewValue)` Called when the raw value of the sensor attached to the port changes.

Method Detail

### stateChanged

    void stateChanged(SensorPort aSource,
                      int aOldValue,
                      int aNewValue)

  Called when the raw value of the sensor attached to the port changes.

  Parameters:
    `aSource` - The Port that generated the event.
    `aOldValue` - The old sensor raw value.
    `aNewValue` - The new sensor raw value.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD