• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Widget Host
2
3### Introduction
4
5This sample shows how to create and use a widget in the FA model, including creating, displaying, converting, updating, and deleting a widget.
6
7### Usage
8
91. Start the demo app. The main ability is started, and **eTSFormLauncher** is displayed on the page.
10
112. If the corresponding widget provider app has been installed, for example, [FA model Widget](../FormAbility/README.md) or [stage model widget](../FormExtAbility/README.md), the widget will be displayed.
12
13<img src="screenshots/eTSFormLauncherExample.png" alt="eTSFormLauncherExample" style="zoom:50%;" />
14
153. Touch **castTempForm** to convert a temporary widget to a normal one.
16
174. Touch **updateForm** to update the widget.
18
195. Touch **deleteForm** to delete the widget.
20
21### Constraints
22
231. This sample can only be run on standard-system devices.
242. This sample requires DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022) to compile and run.
25