| androidx.test.espresso.remote.RemoteInteraction |
Known Indirect Subclasses
| EspressoRemote |
A singleton class that facilitates communication between other Espresso instance that may be
running in different processes. |
| NoopRemoteInteraction |
Noop RemoteInteraction object |
|
Class Overview
Facilitates communication between other Espresso instance that may be running in different
processes.
Constants
public
static
final
String
BUNDLE_EXECUTION_STATUS
Constant Value:
"executionStatus"
Public Methods
public
abstract
Callable<Void>
createRemoteCheckCallable
(Matcher<Root> rootMatcher, Matcher<View> viewMatcher, Map<String, IBinder> iBinders, ViewAssertion viewAssert)
Creates a callable to run Espresso check interaction on remote processes
The caller is expected to schedule the task to run.
| Parameters |
rootMatcher |
Matcher: the root matcher to use. |
viewMatcher |
Matcher: the view matcher to use. |
iBinders |
Map: a list of binders to pass along to the remote process instance |
viewAssert |
ViewAssertion: the assertion to check. |
public
abstract
Callable<Void>
createRemotePerformCallable
(Matcher<Root> rootMatcher, Matcher<View> viewMatcher, Map<String, IBinder> iBinders, ViewAction... viewActions)
Creates a callable to run a perform interaction on remote processes.
If there no remote Espresso currently running in a timely manner the interaction will not be
executed and a NoRemoteEspressoInstanceException will be thrown.
| Parameters |
rootMatcher |
Matcher: the root matcher to use. |
viewMatcher |
Matcher: the view matcher to use. |
iBinders |
Map: a list of binders to pass along to the remote process instance |
viewActions |
ViewAction: one or more actions to execute. |
public
abstract
boolean
isRemoteProcess
()
| Returns |
boolean |
true if the current Espresso instance running in a remote process. |