说明:从 API Version 7 开始支持。)
一. 支持设备
![](https://harmonyos.oss-cn-beijing.aliyuncs.com/images/202111/b87a52361e0ba4126603322e43c0feee74e6f4.png?x-oss-process=image/resize,w_820,h_110)
二. 导入模块
![](https://harmonyos.oss-cn-beijing.aliyuncs.com/images/202111/e58d2457035efc277d2063e86fc629802433ab.png?x-oss-process=image/resize,w_820,h_95)
三. 权限
无权限
四. formManager.updateForm
updateForm(formId: string, formBindingData: FormBindingData): Promise<void>
以异步方法更新卡片,使用Promise形式返回。
参数:
![](https://harmonyos.oss-cn-beijing.aliyuncs.com/images/202111/d303b02562d2434ba461879c0ba763f856efa1.png?x-oss-process=image/resize,w_820,h_146)
返回值:
![](https://harmonyos.oss-cn-beijing.aliyuncs.com/images/202111/49d38099330673b7be977392f0deead732888f.png?x-oss-process=image/resize,w_820,h_122)
示例:
![](https://harmonyos.oss-cn-beijing.aliyuncs.com/images/202111/353de48754b0dc5232e513c71ad6fbc404b9de.png?x-oss-process=image/resize,w_820,h_218)
五. formManager.updateForm
updateForm(formId: string, formBindingData: FormBindingData, callback: AsyncCallback<void>): void
以异步方法更新卡片,使用callback形式返回。
参数:
![](https://harmonyos.oss-cn-beijing.aliyuncs.com/images/202111/e691e8252db66582ae7106f4792f2a284437a1.png?x-oss-process=image/resize,w_820,h_188)
示例:
![](https://harmonyos.oss-cn-beijing.aliyuncs.com/images/202111/63bf18f33dd169902907425ca580be6d959157.png?x-oss-process=image/resize,w_820,h_226)
本文档主要根据官方文档学习体验整理
附件: