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

InteractionRequest

class InteractionRequest : EspressoRemoteMessage.To


Encapsulates an InteractionRequestProto request. Takes care of all the proto packing and unpacking.

Summary

Nested types

InteractionRequest.Builder

Creates an instance of InteractionRequest from a View matcher and action.

Public constructors

Public functions

Matcher<Root>!

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

ViewAction!

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

ViewAssertion!

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

Matcher<View>!

Returns the < associated with this InteractionRequest or null if no view matcher was set.

MessageLite!

Public constructors

InteractionRequest

InteractionRequest()

Public functions

getRootMatcher

fun getRootMatcher(): Matcher<Root>!

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

getViewAction

fun getViewAction(): ViewAction!

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

getViewAssertion

fun getViewAssertion(): ViewAssertion!

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

getViewMatcher

fun getViewMatcher(): Matcher<View>!

Returns the < associated with this InteractionRequest or null if no view matcher was set.

toProto

fun toProto(): MessageLite!