ViewHierarchyFilter

class ViewHierarchyFilter(screenWidth: Int, screenHeight: Int)

ViewHierarchyFilter provides functionality to filter view hierarchy elements to only those that are visible and interactable, reducing the size of data sent to the LLM.

Constructors

Link copied to clipboard
constructor(screenWidth: Int, screenHeight: Int)

Types

Link copied to clipboard
data class Bounds(val x1: Int, val y1: Int, val x2: Int, val y2: Int)

Bounds represents the rectangular bounds of a UI element.

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Filter the view hierarchy to only include interactable elements.