Signed-off-by: x30043723 <xieqiongyang@huawei.com>
Change-Id: I1162ec1f3c15c44cafe1b2a47c99458eeb289d37
This commit is contained in:
x30043723 2023-11-22 07:05:12 +00:00
parent e0a5a1faeb
commit 20331b0b97

View File

@ -196,7 +196,7 @@ declare namespace featureAbility {
function connectAbility(request: Want, options: ConnectOptions): number;
/**
* The callback interface was connect successfully.
* Disconnects ability to a Service ability.
*
* @param { number } connection - The number code of the ability connected
* @param { AsyncCallback<void> } callback - Returns the disconnection result in the form of callback.
@ -207,7 +207,7 @@ declare namespace featureAbility {
function disconnectAbility(connection: number, callback: AsyncCallback<void>): void;
/**
* The callback interface was connect successfully.
* Disconnects ability to a Service ability.
*
* @param { number } connection - The number code of the ability connected
* @returns { Promise<void> } the promise returned by the function.