public interface UltrasonicListener
| Modifier and Type | Method and Description | 
|---|---|
void | 
far(SensorPort port,
   int level)
Called when the distance exceeds the trigger level. 
 | 
void | 
near(SensorPort port,
    int level)
Called when the distance falls below the trigger level. 
 | 
void far(SensorPort port, int level)
port - the port where the sensor is plugged inlevel - the current distance levelvoid near(SensorPort port, int level)
port - the port where the sensor is plugged inlevel - the current distance level