lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

InteractionRequest

public final class InteractionRequest
extends Object implements To<MessageLite>

java.lang.Object
   ↳ android.support.test.espresso.remote.InteractionRequest


Encapsulates an UiInteraction.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()

Inherited methods

From class java.lang.Object
From interface android.support.test.espresso.remote.EspressoRemoteMessage.To

Public methods

getRootMatcher

Matcher<Root> getRootMatcher ()

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

Returns
Matcher<Root>

getViewAction

ViewAction getViewAction ()

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

Returns
ViewAction

getViewAssertion

ViewAssertion getViewAssertion ()

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

Returns
ViewAssertion

getViewMatcher

Matcher<View> getViewMatcher ()

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

Returns
Matcher<View>

toProto

MessageLite toProto ()

Returns
MessageLite