| 包: | dji.open.pilot.base.ui |
classSince MSDK 5.20.1
IRemoteViewTextWatcher
视图文本变化监听器。
描述:
method
method
beforeTextChanged
Since MSDK 5.20.1fun beforeTextChanged(s: String, start: Int, count: Int, after: Int) |
在文本变更前触发。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
s | String | 变更前的完整文本内容。 |
start | Int | 变更起始位置(从0开始索引)。 |
count | Int | 将被替换的字符数量。 |
after | Int | 新插入字符的数量。 |
method
method
onTextChanged
Since MSDK 5.20.1fun onTextChanged(s: String, start: Int, before: Int, count: Int) |
在文本变更时触发。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
s | String | 变更后的完整文本内容。 |
start | Int | 变更起始位置(从0开始索引)。 |
before | Int | 被替换的原字符数量。 |
count | Int | 新插入字符的数量。 |
method
method
afterTextChanged
Since MSDK 5.20.1fun afterTextChanged(s: String) |
在文本变更完成后触发。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
s | String | 最终生效的完整文本内容。 |