{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class RootMatchers
A collection of matchers for Root objects.
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
static Matcher<Root> |
|
static Matcher<Root> |
isDialog()Matches |
static Matcher<Root> |
Matches |
static Matcher<Root> |
Matches |
static Matcher<Root> |
Matches |
static Matcher<Root> |
Matches |
static Matcher<Root> |
withDecorView(Matcher<View> decorViewMatcher)Matches |
public static Matcher<Root> isDialog()
Matches Roots that are dialogs (i.e. is not a window of the currently resumed activity).
public static Matcher<Root> isPlatformPopup()
Matches Roots that are popups - like autocomplete suggestions or the actionbar spinner.
public static Matcher<Root> isSystemAlertWindow()
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