{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class RootMatchers
A collection of matchers for Root objects.
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
java-static Matcher<Root>! |
|
java-static Matcher<Root>! |
isDialog()Matches |
java-static Matcher<Root>! |
Matches |
java-static Matcher<Root>! |
Matches |
java-static Matcher<Root>! |
Matches |
java-static Matcher<Root>! |
Matches |
java-static Matcher<Root>! |
withDecorView(decorViewMatcher: Matcher<View>!)Matches |
java-static fun isDialog(): Matcher<Root>!
Matches Roots that are dialogs (i.e. is not a window of the currently resumed activity).
java-static fun isPlatformPopup(): Matcher<Root>!
Matches Roots that are popups - like autocomplete suggestions or the actionbar spinner.
java-static fun isSystemAlertWindow(): Matcher<Root>!
Matches Roots that are system alert windows i.e. shown on top of all other applications and is not a window of the currently resumed activity
Apps using this type of windows require the following permission:
android.permission.SYSTEM_ALERT_WINDOW
java-static fun isTouchable(): Matcher<Root>!
Matches Roots that can receive touch events.
java-static fun withDecorView(decorViewMatcher: Matcher<View>!): Matcher<Root>!
Matches Roots with decor views that match the given view matcher.