text

abstract fun text(filter: (String?) -> Boolean): AccessibilitySelector

根据视图的文本内容进行过滤。

Return

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

Parameters

filter

接受一个可为 null 的 String 并返回 Boolean,表示是否匹配文本内容。