public class LocalUiController
extends java.lang.Object
implements androidx.test.platform.ui.UiController
A UiController
that runs on a local JVM with Robolectric.
Constructor and Description |
---|
LocalUiController() |
Modifier and Type | Method and Description |
---|---|
boolean |
injectKeyEvent(android.view.KeyEvent event) |
boolean |
injectMotionEvent(android.view.MotionEvent event) |
boolean |
injectString(java.lang.String str) |
void |
loopMainThreadForAtLeast(long millisDelay) |
void |
loopMainThreadUntilIdle() |
public boolean injectMotionEvent(android.view.MotionEvent event) throws androidx.test.platform.ui.InjectEventSecurityException
injectMotionEvent
in interface androidx.test.platform.ui.UiController
androidx.test.platform.ui.InjectEventSecurityException
public boolean injectKeyEvent(android.view.KeyEvent event) throws androidx.test.platform.ui.InjectEventSecurityException
injectKeyEvent
in interface androidx.test.platform.ui.UiController
androidx.test.platform.ui.InjectEventSecurityException
public boolean injectString(java.lang.String str) throws androidx.test.platform.ui.InjectEventSecurityException
injectString
in interface androidx.test.platform.ui.UiController
androidx.test.platform.ui.InjectEventSecurityException
public void loopMainThreadUntilIdle()
loopMainThreadUntilIdle
in interface androidx.test.platform.ui.UiController
public void loopMainThreadForAtLeast(long millisDelay)
loopMainThreadForAtLeast
in interface androidx.test.platform.ui.UiController