Class ShadowInputDevice

java.lang.Object
org.robolectric.shadows.ShadowInputDevice

@Implements(android.view.InputDevice.class) public class ShadowInputDevice extends Object
  • Constructor Details

    • ShadowInputDevice

      public ShadowInputDevice()
  • Method Details

    • makeInputDeviceNamed

      public static InputDevice makeInputDeviceNamed(String deviceName)
    • getName

      @Implementation protected String getName()
    • getProductId

      @Implementation(minSdk=19) protected int getProductId()
    • getVendorId

      @Implementation(minSdk=19) protected int getVendorId()
    • setDeviceName

      public void setDeviceName(String deviceName)
    • setProductId

      public void setProductId(int productId)
    • setVendorId

      public void setVendorId(int vendorId)