可以尝试通过组件可见区域变化监听,可以参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-universal-component-visible-area-change-event-V5另外,如果是visibility的话,变化应该应用自己可以监听变量。
可以尝试通过组件可见区域变化监听,可以参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-universal-component-visible-area-change-event-V5
另外,如果是visibility的话,变化应该应用自己可以监听变量。