后浪云鸿蒙OS教程:鸿蒙OS TextField.CursorChangedListener

树叶云

TextField.CursorChangedListener

protected static interface TextField.CursorChangedListener

提供可在光标位置更改时调用的回调。

方法总结

修饰符和类型方法描述
voidonCursorChange(TextField textField, int posStart, int posAfter)当光标位置改变时调用。

方法详情

onCursorChange

void onCursorChange(TextField textField, int posStart, int posAfter)

当光标位置改变时调用。

参数:

参数名称参数描述
textField指示光标所在的 TextField 对象。
posStart指示光标的起始位置。
posAfter指示光标的结束位置。

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/178797.html<

(0)
运维的头像运维
上一篇2025-03-26 06:33
下一篇 2025-03-26 06:34

相关推荐

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注