@Implements(android.hardware.Sensor.class) public class ShadowSensor extends Object
Constructor | Description |
---|---|
ShadowSensor() |
Modifier and Type | Method | Description |
---|---|---|
protected float |
getMaximumRange() |
|
static Sensor |
newInstance(int type) |
Constructs a
Sensor with a given type. |
void |
setMaximumRange(float range) |
Sets the return value for
Sensor.getMaximumRange() . |
void |
setWakeUpFlag(boolean wakeup) |
Controls the return value of
Sensor.isWakeUpSensor() . |
public void setWakeUpFlag(boolean wakeup)
Sensor.isWakeUpSensor()
.public void setMaximumRange(float range)
Sensor.getMaximumRange()
.@Implementation protected float getMaximumRange()