From cf24928e05850861a9761b6583a36946f20644cb Mon Sep 17 00:00:00 2001 From: huzeqi Date: Wed, 27 Oct 2021 08:50:36 +0000 Subject: [PATCH] add getDeviceList d.ts Signed-off-by: huzeqi Change-Id: I04509015d55a5ccc58f91738de213efc3f8eb947 --- api/common/@internal/featureability.d.ts | 9 +++++++++ api/phone/@internal/featureability.d.ts | 9 +++++++++ api/tablet/@internal/featureability.d.ts | 9 +++++++++ api/tv/@internal/featureability.d.ts | 9 +++++++++ api/wearable/@internal/featureability.d.ts | 9 +++++++++ 5 files changed, 45 insertions(+) diff --git a/api/common/@internal/featureability.d.ts b/api/common/@internal/featureability.d.ts index ef50dbd427..2499e36654 100644 --- a/api/common/@internal/featureability.d.ts +++ b/api/common/@internal/featureability.d.ts @@ -293,6 +293,15 @@ export declare class FeatureAbility { */ static finishWithResult(param: FinishWithResultParams): Promise; + /** + * Get device information list. + * @param flag Default 0, get the information list of all devices in the network. + * @returns A Promise object is returned, which contains the result whether the device information list is obtained successfully. + * @since 7 + * @devices tv, phone, tablet, wearable + */ + static getDeviceList(flag: number): Promise; + /** * Calls an AA. * @param param Indicates the request param. diff --git a/api/phone/@internal/featureability.d.ts b/api/phone/@internal/featureability.d.ts index f9ba85a227..a8453307a2 100644 --- a/api/phone/@internal/featureability.d.ts +++ b/api/phone/@internal/featureability.d.ts @@ -173,6 +173,15 @@ export declare class FeatureAbility { */ static finishWithResult(param: FinishWithResultParams): Promise; + /** + * Get device information list. + * @param flag Default 0, get the information list of all devices in the network. + * @returns A Promise object is returned, which contains the result whether the device information list is obtained successfully. + * @since 7 + * @devices tv, phone, tablet, wearable + */ + static getDeviceList(flag: number): Promise; + /** * Calls an AA. * @param param Indicates the request param. diff --git a/api/tablet/@internal/featureability.d.ts b/api/tablet/@internal/featureability.d.ts index f9ba85a227..a8453307a2 100644 --- a/api/tablet/@internal/featureability.d.ts +++ b/api/tablet/@internal/featureability.d.ts @@ -173,6 +173,15 @@ export declare class FeatureAbility { */ static finishWithResult(param: FinishWithResultParams): Promise; + /** + * Get device information list. + * @param flag Default 0, get the information list of all devices in the network. + * @returns A Promise object is returned, which contains the result whether the device information list is obtained successfully. + * @since 7 + * @devices tv, phone, tablet, wearable + */ + static getDeviceList(flag: number): Promise; + /** * Calls an AA. * @param param Indicates the request param. diff --git a/api/tv/@internal/featureability.d.ts b/api/tv/@internal/featureability.d.ts index f9ba85a227..a8453307a2 100644 --- a/api/tv/@internal/featureability.d.ts +++ b/api/tv/@internal/featureability.d.ts @@ -173,6 +173,15 @@ export declare class FeatureAbility { */ static finishWithResult(param: FinishWithResultParams): Promise; + /** + * Get device information list. + * @param flag Default 0, get the information list of all devices in the network. + * @returns A Promise object is returned, which contains the result whether the device information list is obtained successfully. + * @since 7 + * @devices tv, phone, tablet, wearable + */ + static getDeviceList(flag: number): Promise; + /** * Calls an AA. * @param param Indicates the request param. diff --git a/api/wearable/@internal/featureability.d.ts b/api/wearable/@internal/featureability.d.ts index f9ba85a227..a8453307a2 100644 --- a/api/wearable/@internal/featureability.d.ts +++ b/api/wearable/@internal/featureability.d.ts @@ -173,6 +173,15 @@ export declare class FeatureAbility { */ static finishWithResult(param: FinishWithResultParams): Promise; + /** + * Get device information list. + * @param flag Default 0, get the information list of all devices in the network. + * @returns A Promise object is returned, which contains the result whether the device information list is obtained successfully. + * @since 7 + * @devices tv, phone, tablet, wearable + */ + static getDeviceList(flag: number): Promise; + /** * Calls an AA. * @param param Indicates the request param. -- Gitee