interface Searchable

Known direct subclasses
UiDevice

UiDevice provides access to state information about the device.

UiObject2

Represents a UI element, and exposes methods for performing gestures (clicks, swipes) or searching through its children.


The Searchable interface represents an object that can be searched for matching UI elements.

Summary

Public functions

UiObject2!

Returns the first object to match the selector criteria.

(Mutable)List<UiObject2!>

Returns all objects that match the selector criteria.

Boolean
hasObject(selector: BySelector)

Returns whether there is a match for the given selector criteria.

Public functions

findObject

Added in 2.4.0-alpha02
fun findObject(selector: BySelector): UiObject2!

Returns the first object to match the selector criteria.

findObjects

Added in 2.4.0-alpha02
fun findObjects(selector: BySelector): (Mutable)List<UiObject2!>

Returns all objects that match the selector criteria.

hasObject

Added in 2.4.0-alpha02
fun hasObject(selector: BySelector): Boolean

Returns whether there is a match for the given selector criteria.