interface ScopedUiWatcher<T : Any?>

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 functions

Boolean

Whether the dialog is visible.

T

A scope for interacting with the dialog.

Public functions

isVisible

Added in 2.4.0-alpha02
fun isVisible(): Boolean

Whether the dialog is visible.

scope

Added in 2.4.0-alpha02
fun scope(): T

A scope for interacting with the dialog.