All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.shadows.ShadowInputEvent Maven / Gradle / Ivy

package org.robolectric.shadows;

import android.view.InputDevice;
import android.view.InputEvent;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;

/**
 * Shadow for {@link android.view.InputEvent}.
 */
@Implements(InputEvent.class)
public class ShadowInputEvent {
  protected InputDevice device;

  @Implementation
  public InputDevice getDevice() {
    return device;
  }

  public void setDevice(InputDevice device) {
    this.device = device;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy