public class LightDetector
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LightDetector.LightListener
The interface Light listener.
|
| Constructor and Description |
|---|
LightDetector(float threshold,
LightDetector.LightListener lightListener)
Instantiates a new Light detector.
|
LightDetector(LightDetector.LightListener lightListener)
Instantiates a new Light detector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onAccuracyChanged(android.hardware.Sensor sensor,
int i) |
void |
onSensorChanged(android.hardware.SensorEvent sensorEvent) |
protected void |
onSensorEvent(android.hardware.SensorEvent sensorEvent) |
public LightDetector(LightDetector.LightListener lightListener)
lightListener - the light listenerpublic LightDetector(float threshold,
LightDetector.LightListener lightListener)
threshold - the thresholdlightListener - the light listenerprotected void onSensorEvent(android.hardware.SensorEvent sensorEvent)
public void onSensorChanged(android.hardware.SensorEvent sensorEvent)
onSensorChanged in interface android.hardware.SensorEventListenerpublic void onAccuracyChanged(android.hardware.Sensor sensor,
int i)
onAccuracyChanged in interface android.hardware.SensorEventListener