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

DataInteraction.DisplayDataMatcher

class DataInteraction.DisplayDataMatcher


Internal matcher that is required for Espresso#onData(Matcher).

This matcher is only visible to support proto serialization. Do not use this matcher in any Espresso test code!

Summary

Public constructors

Public functions

Unit
describeTo(description: Description!)
java-static DataInteraction.DisplayDataMatcher!
displayDataMatcher(
    adapterMatcher: Matcher<View>!,
    dataMatcher: Matcher<?>!,
    rootMatcher: Matcher<Root>!,
    atPosition: EspressoOptional<Int!>!,
    adapterViewProtocol: AdapterViewProtocol!
)

Returns an instance of DisplayDataMatcher.

Boolean
matchesSafely(view: View!)

Public constructors

DisplayDataMatcher

DisplayDataMatcher()

Public functions

describeTo

fun describeTo(description: Description!): Unit

displayDataMatcher

java-static fun displayDataMatcher(
    adapterMatcher: Matcher<View>!,
    dataMatcher: Matcher<?>!,
    rootMatcher: Matcher<Root>!,
    atPosition: EspressoOptional<Int!>!,
    adapterViewProtocol: AdapterViewProtocol!
): DataInteraction.DisplayDataMatcher!

Returns an instance of DisplayDataMatcher.

Note: This is an internal method, do not call from test code!

Parameters
adapterMatcher: Matcher<View>!

matcher that matches an AdapterView

dataMatcher: Matcher<?>!

the data matcher for matching a View by it's adapter data

adapterViewProtocol: AdapterViewProtocol!

the AdapterViewProtocol used for this data interaction

matchesSafely

fun matchesSafely(view: View!): Boolean