Widget Data Interaction
The ArkTS widget framework provides the updateForm() and requestForm() APIs to proactively trigger widget updates. You can use LocalStorageProp to check the widget data to be updated.

| API | System Capability | Constraints |
|---|---|---|
| updateForm | No | 1. Invoked by the widget provider. 2. Allows only the widget provider to update its own widgets. |
| requestForm | Yes | 1. Invoked by the widget host. 2. Allows only the widget host to update the widgets added to it. |
The following are the typical use cases of widget updates: