• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Widget Data Interaction
2
3The ArkTS widget framework provides the **updateForm()** and **requestForm()** APIs to proactively trigger widget updates. You can use [LocalStorageProp](../quick-start/arkts-localstorage.md#localstorageprop) to check the widget data to be updated.
4
5![WidgetLocalStorageProp](figures/WidgetLocalStorageProp.png)
6
7
8| API| System Capability| Constraints|
9| -------- | -------- | -------- |
10| updateForm | No| 1. Invoked by the widget provider.<br>2. Allows only the widget provider to update its own widgets.|
11| requestForm | Yes| 1. Invoked by the widget host.<br>2. Allows only the widget host to update the widgets added to it.|
12
13The following are the typical use cases of widget updates:
14
15- [Configuring a Widget to Update Periodically](arkts-ui-widget-update-by-time.md)
16- [Updating Widget Content Through a Proxy](arkts-ui-widget-update-by-proxy.md)
17- [Updating Local and Online Images](arkts-ui-widget-image-update.md)
18- [Updating Widget Content by State](arkts-ui-widget-update-by-status.md)
19- [Updating Widget Content by Widget Host (for System Applications Only)](arkts-ui-widget-content-update.md)
20