codecamp

鸿蒙OS TextField.CursorChangedListener

TextField.CursorChangedListener

protected static interface TextField.CursorChangedListener

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

方法总结

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

方法详情

onCursorChange

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

当光标位置改变时调用。

参数:

参数名称 参数描述
textField 指示光标所在的 TextField 对象。
posStart 指示光标的起始位置。
posAfter 指示光标的结束位置。
鸿蒙OS Text.TextSizeObserver
鸿蒙OS TickTimer.TickListener
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定