RemoteInteraction
public interface RemoteInteraction
EspressoRemote |
A singleton class that facilitates communication between other Espresso instance that may be running in different processes. |
NoopRemoteInteraction |
Noop RemoteInteraction object |
Facilitates communication between other Espresso instance that may be running in different processes.
Summary
Constants |
|
|---|---|
default static final String |
BUNDLE_EXECUTION_STATUS = "executionStatus" |
Public methods |
|
|---|---|
abstract Callable<Void> |
createRemoteCheckCallable(Creates a callable to run Espresso check interaction on remote processes |
abstract Callable<Void> |
createRemotePerformCallable(Creates a callable to run a perform interaction on remote processes. |
default boolean |
Returns {code true} if the current Espresso instance is communicating with another Espresso instance in a remote process. |
abstract boolean |
Returns |
Constants
Public methods
createRemoteCheckCallable
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.
createRemotePerformCallable
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.
isRemoteClient
default boolean isRemoteClient()
Returns {code true} if the current Espresso instance is communicating with another Espresso instance in a remote process.
isRemoteProcess
abstract boolean isRemoteProcess()
Returns true if the current Espresso instance running in a remote process.