Class ShadowVirtualSensor

java.lang.Object
org.robolectric.shadows.ShadowVirtualSensor

@Implements(value=android.companion.virtual.sensor.VirtualSensor.class, minSdk=34, isInAndroidSdk=false) public class ShadowVirtualSensor extends Object
Shadow for VirtualSensor.
  • Constructor Details

    • ShadowVirtualSensor

      public ShadowVirtualSensor()
  • Method Details

    • getDeviceId

      @Implementation protected int getDeviceId()
    • sendEvent

      @Implementation protected void sendEvent(android.companion.virtual.sensor.VirtualSensorEvent event)
    • getSentEvents

      public List<android.companion.virtual.sensor.VirtualSensorEvent> getSentEvents()