卡片首次添加到桌面,可以在生命周期onAddForm中操作https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/arkts-ui-widget-lifecycle-V5创建卡片时触发,获取数据,FormExtensionAbility进程不能常驻后台,10秒内没有新的生命周期回调触发则进程自动退出1、添加卡片到桌面时初始化数据demo:https://blog.csdn.net/shudaoshanQAQ/article/details/1378414692、在主应用/元服务中更新数据到卡片demo:https://blog.csdn.net/shudaoshanQAQ/article/details/137841469\#:\~:text=%7D-,%E5%9C%A8,-%E4%B8%BB%E5%BA%94%E7%94%A8/%E5%85%83
卡片首次添加到桌面,可以在生命周期onAddForm中操作
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/arkts-ui-widget-lifecycle-V5
创建卡片时触发,获取数据,FormExtensionAbility进程不能常驻后台,10秒内没有新的生命周期回调触发则进程自动退出
1、添加卡片到桌面时初始化数据demo:https://blog.csdn.net/shudaoshanQAQ/article/details/137841469
2、在主应用/元服务中更新数据到卡片demo:https://blog.csdn.net/shudaoshanQAQ/article/details/137841469\#:\~:text=%7D-,%E5%9C%A8,-%E4%B8%BB%E5%BA%94%E7%94%A8/%E5%85%83