后浪云鸿蒙OS教程:鸿蒙OS ListComponent.OnComponentBoundStatusChangeListener

ListComponent.OnComponentBoundStatusChangeListener

public static interface ListComponent.OnComponentBoundStatusChangeListener

实现监听 ListComponent 的状态变化。

方法总结

修饰符和类型方法描述
voidonChildComponentBoundToWindow(Component component)当组件绑定到此 ListComponent 时调用。
voidonChildComponentUnboundFromWindow(Component component)当组件与此 ListComponent 解除绑定时调用。

方法详情

onChildComponentBoundToWindow

void onChildComponentBoundToWindow(Component component)

当组件绑定到此 ListComponent 时调用。

参数:

参数名称参数描述
component表示组件绑定。

onChildComponentUnboundFromWindow

void onChildComponentUnboundFromWindow(Component component)

当组件与此 ListComponent 解除绑定时调用。

参数:

参数名称参数描述
component表示组件未绑定。

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

(0)
运维的头像运维
上一篇2025-03-15 20:32
下一篇 2025-03-15 20:34

相关推荐

发表回复

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