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