输入类型 (Selector.input_type)
Selector.input_type
声明
node.selector():input_type(val)
参数
| 参数 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| val | number | 是 | 控件的输入类型 |
返回值
| 类型 | 说明 |
|---|---|
| Selector | 返回控件查找器,用于链式编程 |
说明
通过控件输入类型约束。
待实现
该接口正在开发中。
示例
local node = require("node")
local n = node.selector():input_type(1):find()
AScript 对应
# AScript (Python)
from ascript.android.node import Selector
node = Selector().inputType(1).find()