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