public final class

InteractionRequest

extends Object
implements To<MessageLite>
java.lang.Object
   ↳ androidx.test.espresso.remote.InteractionRequest

Class Overview

Encapsulates an ERROR(/InteractionRequestProto) request. Takes care of all the proto packing and unpacking.

Summary

Nested Classes
class InteractionRequest.Builder Creates an instance of InteractionRequest from a View matcher and action. 
Public Methods
Matcher<Root> getRootMatcher()
Returns the ERROR(/Matcher) associated with this InteractionRequest or null if no ERROR(/Matcher) was set.
ViewAction getViewAction()
Returns the ViewAction associated with this InteractionRequest or null if no ViewAction was set.
ViewAssertion getViewAssertion()
Returns the ViewAssertion associated with this InteractionRequest or null if no ViewAssertion was set.
Matcher<View> getViewMatcher()
Returns the ERROR(/Matcher) associated with this InteractionRequest or null if no view matcher was set.
MessageLite toProto()
[Expand]
Inherited Methods
From class java.lang.Object
From interface androidx.test.espresso.remote.EspressoRemoteMessage.To

Public Methods

public Matcher<Root> getRootMatcher ()

Returns the ERROR(/Matcher) associated with this InteractionRequest or null if no ERROR(/Matcher) was set.

Returns
Matcher<Root>

public ViewAction getViewAction ()

Returns the ViewAction associated with this InteractionRequest or null if no ViewAction was set.

Returns
ViewAction

public ViewAssertion getViewAssertion ()

Returns the ViewAssertion associated with this InteractionRequest or null if no ViewAssertion was set.

Returns
ViewAssertion

public Matcher<View> getViewMatcher ()

Returns the ERROR(/Matcher) associated with this InteractionRequest or null if no view matcher was set.

Returns
Matcher<View>

public MessageLite toProto ()

Returns
MessageLite