public interface ScopedUiWatcher<T extends Object>

Known direct subclasses
PermissionDialog

Allows easy interaction with the permission dialog.


Defines a contract for a watcher with a scope. A watcher determines whether a certain UI condition is satisfied and allows to operate on the UI. It can be registered with androidx.test.uiautomator.UiAutomatorTestScope.watchFor. ScopedUiWatchers registered in a androidx.test.uiautomator.UiAutomatorTestScope are automatically unregistered at the end of the scope.

Summary

Public methods

abstract boolean

Whether the dialog is visible.

abstract @NonNull T

A scope for interacting with the dialog.

Public methods

isVisible

Added in 2.4.0-alpha02
abstract boolean isVisible()

Whether the dialog is visible.

scope

Added in 2.4.0-alpha02
abstract @NonNullscope()

A scope for interacting with the dialog.