Public Methods |
UiSelector
|
checked(boolean val)
Set the search criteria to match widgets that
are currently checked (usually for checkboxes).
|
UiSelector
|
childSelector(UiSelector selector)
Adds a child UiSelector criteria to this selector.
|
UiSelector
|
className(String className)
Set the search criteria to match the class property
for a widget (for example, "android.widget.Button").
|
<T>
UiSelector
|
className(Class<T> type)
Set the search criteria to match the class property
for a widget (for example, "android.widget.Button").
|
UiSelector
|
classNameMatches(String regex)
Set the search criteria to match the class property
for a widget (for example, "android.widget.Button").
|
UiSelector
|
clickable(boolean val)
Set the search criteria to match widgets that are clickable.
|
UiSelector
|
description(String desc)
Set the search criteria to match the content-description
property for a widget.
|
UiSelector
|
descriptionContains(String desc)
Set the search criteria to match the content-description
property for a widget.
|
UiSelector
|
descriptionMatches(String regex)
Set the search criteria to match the content-description
property for a widget.
|
UiSelector
|
descriptionStartsWith(String desc)
Set the search criteria to match the content-description
property for a widget.
|
UiSelector
|
enabled(boolean val)
Set the search criteria to match widgets that are enabled.
|
UiSelector
|
focusable(boolean val)
Set the search criteria to match widgets that are focusable.
|
UiSelector
|
focused(boolean val)
Set the search criteria to match widgets that have focus.
|
UiSelector
|
fromParent(UiSelector selector)
Adds a child UiSelector criteria to this selector which is used to
start search from the parent widget.
|
UiSelector
|
index(int index)
Set the search criteria to match the widget by its node
index in the layout hierarchy.
|
UiSelector
|
instance(int instance)
Set the search criteria to match the
widget by its instance number.
|
UiSelector
|
longClickable(boolean val)
Set the search criteria to match widgets that are long-clickable.
|
UiSelector
|
packageName(String name)
Set the search criteria to match the package name
of the application that contains the widget.
|
UiSelector
|
packageNameMatches(String regex)
Set the search criteria to match the package name
of the application that contains the widget.
|
UiSelector
|
scrollable(boolean val)
Set the search criteria to match widgets that are scrollable.
|
UiSelector
|
selected(boolean val)
Set the search criteria to match widgets that
are currently selected.
|
UiSelector
|
text(String text)
Set the search criteria to match the visible text displayed
for a widget (for example, the text label to launch an app).
|
UiSelector
|
textContains(String text)
Set the search criteria to match the visible text displayed
for a widget (for example, the text label to launch an app).
|
UiSelector
|
textMatches(String regex)
Set the search criteria to match the visible text displayed
for a widget (for example, the text label to launch an app).
|
UiSelector
|
textStartsWith(String text)
Text property is usually the widget's visible text on the display.
|
String
|
toString()
|