Stage Model Widget
Introduction
This sample shows how to create and use the widget provider in the stage model.
Usage
-
The home screens of some devices do not support widgets. You can create, update, and delete widgets by using your own widget host.
-
The following figure shows the widget style. When the widget is updated, the temperature and time on the widget change.

Constraints
- This sample can only be run on standard-system devices.
- This sample is based on the stage model, which is supported from API version 9.
- This sample requires DevEco Studio 3.1 Beta2 (Build Version: 3.1.0.400, built on April 7, 2023) to compile and run.