InteractionRequest
public
final
class
InteractionRequest
extends Object
implements
To<MessageLite>
java.lang.Object | |
↳ | androidx.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 |
Public methods | |
---|---|
Matcher<Root>
|
getRootMatcher()
Returns the |
ViewAction
|
getViewAction()
Returns the |
ViewAssertion
|
getViewAssertion()
Returns the |
Matcher<View>
|
getViewMatcher()
Returns the |
MessageLite
|
toProto()
|
Inherited methods | |
---|---|
Public methods
getRootMatcher
public Matcher<Root> getRootMatcher ()
Returns the ERROR(/Matcher
associated with this InteractionRequest
or null
if no ERROR(/Matcher
was set.
Returns | |
---|---|
Matcher<Root> |
getViewAction
public ViewAction getViewAction ()
Returns the ViewAction
associated with this InteractionRequest
or null
if no ViewAction
was set.
Returns | |
---|---|
ViewAction |
getViewAssertion
public ViewAssertion getViewAssertion ()
Returns the ViewAssertion
associated with this InteractionRequest
or null
if no ViewAssertion
was set.
Returns | |
---|---|
ViewAssertion |
getViewMatcher
public Matcher<View> getViewMatcher ()
Returns the ERROR(/Matcher
associated with this InteractionRequest
or null
if no view matcher was set.
Returns | |
---|---|
Matcher<View> |
toProto
public MessageLite toProto ()
Returns | |
---|---|
MessageLite |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-07-14 UTC.