depth

abstract fun depth(filter: (Int) -> Boolean): AccessibilitySelector

根据视图的层级深度进行过滤。

Return

返回对象本身方便链式调用

Parameters

filter

接受一个 Int 类型的深度值并返回 Boolean,表示是否匹配该层级。