Issue: #I5XPYI

Description: add @systemapi for bundleManager.getLaunchWantForBundle
Sig: SIG_ApplicaitonFramework
Feature or Bugfix: Bugfix
Binary Source: No

Signed-off-by: zhaogan <zhaogan2@huawei.com>
This commit is contained in:
zhaogan 2022-10-26 10:15:30 +08:00
parent 8e8f07a63a
commit e7f82cdfe8
5 changed files with 27 additions and 14 deletions

View File

@ -256,7 +256,6 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo';
/**
* Indicates extension info with type of service
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 9
*/
SERVICE = 3,
@ -271,7 +270,6 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo';
/**
* Indicates extension info with type of dataShare
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 9
*/
DATA_SHARE = 5,
@ -892,7 +890,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo';
* @systemapi
* @since 9
*/
function setApplicationEnabled(bundleName: string, isEnable: boolean, callback: AsyncCallback<void>): void;
function setApplicationEnabled(bundleName: string, isEnabled: boolean, callback: AsyncCallback<void>): void;
/**
* Sets whether to enable a specified application.
@ -907,7 +905,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo';
* @systemapi
* @since 9
*/
function setApplicationEnabled(bundleName: string, isEnable: boolean): Promise<void>;
function setApplicationEnabled(bundleName: string, isEnabled: boolean): Promise<void>;
/**
* Sets whether to enable a specified ability.
@ -923,7 +921,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo';
* @systemapi
* @since 9
*/
function setAbilityEnabled(info: AbilityInfo, isEnable: boolean, callback: AsyncCallback<void>): void;
function setAbilityEnabled(info: AbilityInfo, isEnabled: boolean, callback: AsyncCallback<void>): void;
/**
* Sets whether to enable a specified ability.
@ -939,7 +937,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo';
* @systemapi
* @since 9
*/
function setAbilityEnabled(info: AbilityInfo, isEnable: boolean): Promise<void>;
function setAbilityEnabled(info: AbilityInfo, isEnabled: boolean): Promise<void>;
/**
* Checks whether a specified application is enabled.
@ -1005,6 +1003,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo';
* @throws { BusinessError } 17700004 - The specified userId is not found.
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 9
*/
function getLaunchWantForBundle(bundleName: string, userId: number, callback: AsyncCallback<Want>): void;
@ -1022,6 +1021,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo';
* @throws { BusinessError } 17700004 - The specified userId is not found.
* @throws { BusinessError } 17700026 - The specified bundle is disabled.
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 9
*/
function getLaunchWantForBundle(bundleName: string, callback: AsyncCallback<Want>): void;
@ -1039,6 +1039,7 @@ import * as _ExtensionAbilityInfo from './bundleManager/extensionAbilityInfo';
* @throws { BusinessError } 17700001 - The specified bundleName is not found.
* @throws { BusinessError } 17700004 - The specified userId is not found.
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 9
*/
function getLaunchWantForBundle(bundleName: string, userId?: number): Promise<Want>;

View File

@ -112,7 +112,7 @@ declare namespace launcherBundleManager {
* @returns { Promise<Array<ShortcutInfo>> } the LauncherShortcutInfo object.
* @throws {BusinessError} 201 - Verify permission denied.
* @throws {BusinessError} 401 - The parameter check failed.
* @throws {BusinessError} 801 - Capability not support.
* @throws {BusinessError} 801 - Capability not support.
* @throws {BusinessError} 17700001 - The specified bundle name is not found.
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
* @systemapi
@ -127,6 +127,21 @@ declare namespace launcherBundleManager {
* @since 9
*/
export type LauncherAbilityInfo = _LauncherAbilityInfo;
/**
* Provides information about a shortcut, including the shortcut ID and label.
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
* @systemapi
* @since 9
*/
export type ShortcutInfo = _ShortcutInfo;
/**
* Obtains information about the ability that a shortcut will start.
* @syscap SystemCapability.BundleManager.BundleFramework.Launcher
* @systemapi
* @since 9
*/
export type ShortcutWant = _ShortcutWant;
}
export default launcherBundleManager;

View File

@ -115,7 +115,7 @@ export interface AbilityInfo {
/**
* Enumerates types of templates that can be used by an ability
* @type {bundleManager.AbilityType}
* @syscap SystemCapability.BundleManager.BundleFramework
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @FAModelOnly
* @since 9
*/
@ -148,7 +148,7 @@ export interface AbilityInfo {
/**
* Indicates the permission required for reading ability data
* @type {string}
* @syscap SystemCapability.BundleManager.BundleFramework
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @FAModelOnly
* @since 9
*/
@ -157,7 +157,7 @@ export interface AbilityInfo {
/**
* Indicates the permission required for writing data to the ability
* @type {string}
* @syscap SystemCapability.BundleManager.BundleFramework
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @FAModelOnly
* @since 9
*/
@ -166,7 +166,7 @@ export interface AbilityInfo {
/**
* Uri of ability
* @type {string}
* @syscap SystemCapability.BundleManager.BundleFramework
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @FAModelOnly
* @since 9
*/

View File

@ -179,7 +179,6 @@ export interface ApplicationInfo {
* Indicates the appDistributionType of the application
* @type {string}
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 9
*/
readonly appDistributionType: string;
@ -188,7 +187,6 @@ export interface ApplicationInfo {
* Indicates the appProvisionType of the application
* @type {string}
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 9
*/
readonly appProvisionType: string;

View File

@ -132,7 +132,6 @@ export interface HapModuleInfo {
* Indicates the hash value of the hap module
* @type {string}
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 9
*/
readonly hashValue: string;