0400c02c7c
Signed-off-by: caopan <caopan8@huawei.com> |
||
---|---|---|
.. | ||
entry | ||
screenshots/device | ||
build.gradle | ||
README.md | ||
READNE_zh.md | ||
settings.gradle |
JS Service Widget Development
Introduction
This sample demonstrates service widgets. Service widgets are used to present important information about apps, allowing users to access desired services instantly via shortcut gestures.
Usage
Swipe up the icon of the sample app, select a service widget size, and touch ADD TO HOME SCREEN to add the service widget to the home screen. Alternatively, touch and hold the sample app icon until Service Widgets is displayed, touch Service Widgets, select a service widget size, and touch ADD TO HOME SCREEN to add the service widget to the home screen. You can touch a service widget on the home screen to go to the home page of the sample app.
Constraints
This sample can only be run on large-system devices. A maximum of 16 service widgets can be configured for a single app.