applications_app_samples/UI/JsFACard
caopan 0400c02c7c add sample for js service widget
Signed-off-by: caopan <caopan8@huawei.com>
2021-07-06 20:41:54 +08:00
..
entry add sample for js service widget 2021-07-06 20:41:54 +08:00
screenshots/device add sample for js service widget 2021-07-06 20:41:54 +08:00
build.gradle add sample for js service widget 2021-07-06 20:41:54 +08:00
README.md add sample for js service widget 2021-07-06 20:41:54 +08:00
READNE_zh.md add sample for js service widget 2021-07-06 20:41:54 +08:00
settings.gradle add sample for js service widget 2021-07-06 20:41:54 +08:00

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.