|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LightListener
Interface with declarations of callback methods for the light sensor.
| Method Summary | |
|---|---|
void |
bright(SensorPort port,
int level)
Called when the light becomes brighter than the trigger level. |
void |
dark(SensorPort port,
int level)
Called when the light becomes darker than the trigger level. |
| Method Detail |
|---|
void bright(SensorPort port,
int level)
port - the port where the sensor is plugged inlevel - the current light level
void dark(SensorPort port,
int level)
port - the port where the sensor is plugged inlevel - the current light level
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||