@Implements(value=android.hardware.Sensor.class) public class ShadowSensor extends Object
Constructor and Description |
---|
ShadowSensor() |
Modifier and Type | Method and 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)
Controls the return value of Sensor.isWakeUpSensor()
.
public void setMaximumRange(float range)
Sets the return value for Sensor.getMaximumRange()
.
@Implementation protected float getMaximumRange()