From 802dfc6f58ad0294190720fe5cc8dd0724be059e Mon Sep 17 00:00:00 2001 From: wanghang Date: Tue, 26 Apr 2022 10:06:47 +0800 Subject: [PATCH] IssueNo:#I54P1X:add locale param Description:add locale param Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: wanghang Change-Id: I105c701fcdf3bf5f858a864ffe4123db30bfc5bd --- api/@ohos.distributedBundle.d.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/api/@ohos.distributedBundle.d.ts b/api/@ohos.distributedBundle.d.ts index e9fea81850..d838c64e5c 100644 --- a/api/@ohos.distributedBundle.d.ts +++ b/api/@ohos.distributedBundle.d.ts @@ -51,4 +51,32 @@ import { RemoteAbilityInfo } from './bundle/remoteAbilityInfo'; */ function getRemoteAbilityInfos(elementNames: Array, callback: AsyncCallback>): void; function getRemoteAbilityInfos(elementNames: Array): Promise>; + + /** + * Obtains information about the ability info of the remote device. + * + * @since 9 + * @syscap SystemCapability.BundleManager.DistributedBundleFramework + * @param elementName Indicates the elementName. + * @param locale Indicates the locale info + * @return Returns the ability info of the remote device. + * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED + * @systemapi + */ + function getRemoteAbilityInfo(elementName: ElementName, locale: string, callback: AsyncCallback): void; + function getRemoteAbilityInfo(elementName: ElementName, locale: string): Promise; + + /** + * Obtains information about the ability infos of the remote device. + * + * @since 9 + * @syscap SystemCapability.BundleManager.DistributedBundleFramework + * @param elementNames Indicates the elementNames, Maximum array length ten. + * @param locale Indicates the locale info + * @return Returns the ability infos of the remote device. + * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED + * @systemapi + */ + function getRemoteAbilityInfos(elementNames: Array, locale: string, callback: AsyncCallback>): void; + function getRemoteAbilityInfos(elementNames: Array, locale: string): Promise>; } \ No newline at end of file -- Gitee