remove extension from want

Signed-off-by: s00494828 <shilei91@huawei.com>
Change-Id: I1f22e87da37e052363ed71e7c56b4df625a08edd
This commit is contained in:
s00494828 2022-05-07 15:12:41 +08:00
parent ed53c754e0
commit 067efc7b2f
2 changed files with 3 additions and 19 deletions

View File

@ -589,9 +589,9 @@ declare namespace bundle {
* @return Returns a list of ExtensionInfo objects.
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED or ohos.permission.GET_BUNDLE_INFO
*/
function queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, userId: number, callback: AsyncCallback<Array<ExtensionAbilityInfo>>): void;
function queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, callback: AsyncCallback<Array<ExtensionAbilityInfo>>): void;
function queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, userId?: number): Promise<Array<ExtensionAbilityInfo>>;
function queryExtensionAbilityInfos(want: Want, extensionType: number, extensionFlags: number, userId: number, callback: AsyncCallback<Array<ExtensionAbilityInfo>>): void;
function queryExtensionAbilityInfos(want: Want, extensionType: number, extensionFlags: number, callback: AsyncCallback<Array<ExtensionAbilityInfo>>): void;
function queryExtensionAbilityInfos(want: Want, extensionType: number, extensionFlags: number, userId?: number): Promise<Array<ExtensionAbilityInfo>>;
/**
* Get the permission details by permissionName.

16
api/ability/want.d.ts vendored
View File

@ -92,20 +92,4 @@ export declare interface Want {
* @default -
*/
entities?: Array<string>;
/**
* The description of a extension ability name in a Want.
* @since 9
* @syscap SystemCapability.Ability.AbilityBase
* @default -
*/
extensionAbilityName?: string;
/**
* The description of a extension ability type in a Want.
* @since 9
* @syscap SystemCapability.Ability.AbilityBase
* @default -
*/
extensionAbilityType?: number;
}