public class RoboUiController
extends java.lang.Object
implements androidx.test.platform.ui.UiController
Custom implementation of UiController
for Robolectric.
Constructor and Description |
---|
RoboUiController() |
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