146 Star 1.4K Fork 1.7K

OpenHarmony/applications_app_samples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.md 780 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangxinlogo 提交于 3年前 . update 992

Stage Model Widget

Introduction

This sample shows how to create and use the widget provider in the stage model.

Usage

  1. The home screens of some devices do not support widgets. You can create, update, and delete widgets by using your own widget host. For details, see Widget Host.

  2. The following figure shows the widget style. When the widget is updated, the temperature and time on the widget change.

eTSFormExample

Constraints

  1. This sample can only be run on standard-system devices.
  2. This sample is based on the stage model, which is supported from API version 9.
  3. This sample requires DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022) to compile and run.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/applications_app_samples.git
git@gitee.com:openharmony/applications_app_samples.git
openharmony
applications_app_samples
applications_app_samples
OpenHarmony-3.2-Beta5

搜索帮助