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. The IDE version used in this sample must be 3.0.0.901 or later.