ScopedUiWatcher
public interface ScopedUiWatcher<T extends Object>
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 |
scope()A scope for interacting with the dialog. |