Package org.robolectric.shadows
Class SensorEventBuilder
java.lang.Object
org.robolectric.shadows.SensorEventBuilder
Builder for
SensorEvent
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static SensorEventBuilder
setAccuracy
(int value) If the 'type' property of Sensor is all that is important to your use case, an instance of from ShadowSensor.newInstance(sensorType) should suffice.setTimestamp
(long value) setValues
(float[] value)
-
Method Details
-
newBuilder
-
setValues
-
setSensor
If the 'type' property of Sensor is all that is important to your use case, an instance of from ShadowSensor.newInstance(sensorType) should suffice. -
setTimestamp
-
setAccuracy
-
build
-