{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

NoopRemoteInteraction

class NoopRemoteInteraction : RemoteInteraction


Noop RemoteInteraction object

Summary

Public constructors

Public functions

Callable<Void!>!
createRemoteCheckCallable(
    rootMatcher: Matcher<Root!>!,
    viewMatcher: Matcher<View!>!,
    iBinders: (Mutable)Map<String!, IBinder!>!,
    viewAssertion: ViewAssertion!
)

Creates a callable to run Espresso check interaction on remote processes

Callable<Void!>!
createRemotePerformCallable(
    rootMatcher: Matcher<Root!>!,
    viewMatcher: Matcher<View!>!,
    iBinders: (Mutable)Map<String!, IBinder!>!,
    viewActions: Array<ViewAction!>!
)

Creates a callable to run a perform interaction on remote processes.

Boolean

Inherited Constants

From class androidx.test.espresso.remote.RemoteInteraction

Public constructors

NoopRemoteInteraction

NoopRemoteInteraction()

Public functions

createRemoteCheckCallable

fun createRemoteCheckCallable(
    rootMatcher: Matcher<Root!>!,
    viewMatcher: Matcher<View!>!,
    iBinders: (Mutable)Map<String!, IBinder!>!,
    viewAssertion: ViewAssertion!
): Callable<Void!>!

Creates a callable to run Espresso check interaction on remote processes

The caller is expected to schedule the task to run.

Parameters
rootMatcher: Matcher<Root!>!

the root matcher to use.

viewMatcher: Matcher<View!>!

the view matcher to use.

iBinders: (Mutable)Map<String!, IBinder!>!

a list of binders to pass along to the remote process instance

Returns
Callable<Void!>!

a Callable that will perform the check pending completion of the task.

createRemotePerformCallable

fun createRemotePerformCallable(
    rootMatcher: Matcher<Root!>!,
    viewMatcher: Matcher<View!>!,
    iBinders: (Mutable)Map<String!, IBinder!>!,
    viewActions: Array<ViewAction!>!
): Callable<Void!>!

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<Root!>!

the root matcher to use.

viewMatcher: Matcher<View!>!

the view matcher to use.

iBinders: (Mutable)Map<String!, IBinder!>!

a list of binders to pass along to the remote process instance

viewActions: Array<ViewAction!>!

one or more actions to execute.

Returns
Callable<Void!>!

a Callable that performs the action.

isRemoteProcess

fun isRemoteProcess(): Boolean
Returns
Boolean

true if the current Espresso instance running in a remote process.