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

DataInteraction.DisplayDataMatcher

class DataInteraction.DisplayDataMatcher : TypeSafeMatcher

kotlin.Any
   ↳ org.hamcrest.BaseMatcher
     ↳ org.hamcrest.TypeSafeMatcher
       ↳ androidx.test.espresso.DataInteraction.DisplayDataMatcher

Internal matcher that is required for onData.

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<Any!>,
    rootMatcher: Matcher<Root!>,
    atPosition: EspressoOptional<Int!>!,
    adapterViewProtocol: AdapterViewProtocol
)

Returns an instance of DisplayDataMatcher.

Boolean

Inherited functions

From class org.hamcrest.BaseMatcher
From class org.hamcrest.TypeSafeMatcher
Unit
describeMismatch(item: Any!, description: Description!)
Unit
describeMismatchSafely(item: T!, mismatchDescription: Description!)
Boolean
matches(item: Any!)

Public constructors

DisplayDataMatcher

DisplayDataMatcher()

Public functions

describeTo

fun describeTo(description: Description!): Unit

displayDataMatcher

java-static fun displayDataMatcher(
    adapterMatcher: Matcher<View!>,
    dataMatcher: Matcher<Any!>,
    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<Any!>

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