Package org.robolectric.shadows
Class SensorBuilder
java.lang.Object
org.robolectric.shadows.SensorBuilder
Builder for
Sensor.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static SensorBuildersetFifoMaxEventCount(int fifoMaxEventCount) setFifoReservedEventCount(int fifoReservedEventCount) setMaxDelay(int maxDelay) Sets the maximum delay in microseconds for this sensor.setMaximumRange(float maximumRange) setMinDelay(int minDelay) Sets the minimum delay in microseconds for this sensor.setType(int type) setWakeUpFlag(boolean wakeUpFlag)
-
Method Details
-
newBuilder
-
setType
-
setWakeUpFlag
-
setMaximumRange
-
setMinDelay
Sets the minimum delay in microseconds for this sensor.This is the minimum time between samples when the sensor is in continuous mode.
- Parameters:
minDelay- minimum delay in microseconds- See Also:
-
setMaxDelay
Sets the maximum delay in microseconds for this sensor.This is the maximum time between samples when the sensor is in continuous mode.
- Parameters:
maxDelay- maximum delay in microseconds- See Also:
-
setName
-
setFifoMaxEventCount
-
setFifoReservedEventCount
-
build
-