Widget Host

Introduction

This sample shows how to create and use a widget in the FA model, including creating, displaying, converting, updating, and deleting a widget.

Usage

  1. Start the demo app. The main ability is started, and eTSFormLauncher is displayed on the page.

  2. If the corresponding widget provider app has been installed, for example, FA model Widget or stage model widget, the widget will be displayed.

eTSFormLauncherExample

  1. Touch castTempForm to convert a temporary widget to a normal one.

  2. Touch updateForm to update the widget.

  3. Touch deleteForm to delete the widget.

Constraints

  1. This sample can only be run on standard-system devices.
  2. The IDE version used in this sample must be 3.0.0.901 or later.