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

HasBackgroundMatcher

class HasBackgroundMatcher : TypeSafeMatcher

kotlin.Any
   ↳ org.hamcrest.BaseMatcher
     ↳ org.hamcrest.TypeSafeMatcher
       ↳ androidx.test.espresso.matcher.HasBackgroundMatcher

Matcher to match android.view.View based on its background resource.

Summary

Public constructors

Public functions

Unit
describeTo(description: Description!)

Protected functions

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

HasBackgroundMatcher

HasBackgroundMatcher(drawableId: Int)

Public functions

describeTo

fun describeTo(description: Description!): Unit

Protected functions

matchesSafely

protected fun matchesSafely(view: View!): Boolean