IAbilityConnection.md 2.5 KB
Newer Older
W
wenjun 已提交
1 2
# IAbilityConnection<a name="ZH-CN_TOPIC_0000001054479567"></a>

[
[yang] 已提交
3 4 5 6 7
-   [Overview](#section1831135900165631)
-   [Summary](#section1540980390165631)
-   [Data Fields](#pub-attribs)

## **Overview**<a name="section1831135900165631"></a>
W
wenjun 已提交
8 9 10 11 12 13 14 15 16

**Related Modules:**

[AbilityKit](AbilityKit.md)

**Description:**

Provides callbacks to be invoked when a remote  [Service](Service.md)  ability is connected or disconnected. 

[
[yang] 已提交
17
## **Summary**<a name="section1540980390165631"></a>
W
wenjun 已提交
18 19 20

## Data Fields<a name="pub-attribs"></a>

[
[yang] 已提交
21 22
<a name="table989694410165631"></a>
<table><thead align="left"><tr id="row1213064226165631"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p225743872165631"><a name="p225743872165631"></a><a name="p225743872165631"></a>Variable Name</p>
W
wenjun 已提交
23
</th>
[
[yang] 已提交
24
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p1420673164165631"><a name="p1420673164165631"></a><a name="p1420673164165631"></a>Description</p>
W
wenjun 已提交
25 26 27
</th>
</tr>
</thead>
[
[yang] 已提交
28
<tbody><tr id="row108814336165631"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1167230993165631"><a name="p1167230993165631"></a><a name="p1167230993165631"></a><a href="AbilityKit.md#ga3b9bfacbcf1564c83cffbfff7889998a">OnAbilityConnectDone</a> )(<a href="ElementName.md">ElementName</a> *elementName, SvcIdentity *serviceSid, int resultCode, void *data)</p>
W
wenjun 已提交
29
</td>
[
[yang] 已提交
30 31
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1903338102165631"><a name="p1903338102165631"></a><a name="p1903338102165631"></a>void(* </p>
<p id="p798332460165631"><a name="p798332460165631"></a><a name="p798332460165631"></a>Called when a client is connected to a <a href="Service.md">Service</a> ability. </p>
W
wenjun 已提交
32 33
</td>
</tr>
[
[yang] 已提交
34
<tr id="row928781257165631"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p457566603165631"><a name="p457566603165631"></a><a name="p457566603165631"></a><a href="AbilityKit.md#gaba7cf0abb517890ef1a3949e398aaf1d">OnAbilityDisconnectDone</a> )(<a href="ElementName.md">ElementName</a> *elementName, int resultCode, void *data)</p>
W
wenjun 已提交
35
</td>
[
[yang] 已提交
36 37
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1962129111165631"><a name="p1962129111165631"></a><a name="p1962129111165631"></a>void(* </p>
<p id="p1232143269165631"><a name="p1232143269165631"></a><a name="p1232143269165631"></a>Called after all connections to a <a href="Service.md">Service</a> ability are disconnected. </p>
W
wenjun 已提交
38 39 40 41 42
</td>
</tr>
</tbody>
</table>