• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#  ServiceExtAbility
2
3### Introduction
4
5This sample shows how to create and use a Service Extension ability in eTS.
6
7### Usage
81. After the demo app is started, touch **Start**. The ability startup status is displayed.
9
102. Enter two numbers, which will be passed to the Service Extension ability for the addition operation.
11
123. Touch **Connect** to connect to the Service Extension ability. The ability connection status is displayed.
13
143. After the ability is connected, the numbers entered are sent to the Service Extension ability, which calculates the result and returns the result to the demo app. The app's page displays the calculation result.
15
164. Touch **Disconnect** to disconnect from the Service Extension ability. The ability disconnection status is displayed.
17
18### Constraints
19
201. This sample can only be run on standard-system devices.
212. This sample is based on the stage model, which is supported from API version 9.
223. The DevEco Studio version used in this sample must be 3.0 Canary7 or later.
23