diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index 88d5361894f80563be98df5735d604a05b3471a8..fe7aa4aafdd52029d186b9329c7c01fa61930be5 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -27,8 +27,7 @@ import { ModuleUsageRecord } from './bundle/moduleUsageRecord'; * bundle. * @name bundle * @since 7 - * @sysCap SystemCapability.Appexecfwk - * @devices phone, tablet, tv, wearable + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA */ declare namespace bundle { @@ -36,10 +35,9 @@ declare namespace bundle { /** * @name BundleFlag * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable */ enum BundleFlag { GET_BUNDLE_DEFAULT = 0x00000000, @@ -79,10 +77,9 @@ declare namespace bundle { /** * @name ExtensionFlag * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable * @StageModelOnly */ enum ExtensionFlag { @@ -95,10 +92,9 @@ declare namespace bundle { /** * @name ColorMode * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable */ export enum ColorMode { AUTO_MODE = -1, @@ -109,10 +105,9 @@ declare namespace bundle { /** * @name GrantStatus * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable */ export enum GrantStatus { PERMISSION_DENIED = -1, @@ -122,37 +117,36 @@ declare namespace bundle { /** * @name AbilityType * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable */ export enum AbilityType { /** * @default Indicates an unknown ability type * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ UNKNOWN, /** * @default Indicates that the ability has a UI * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ PAGE, /** * @default Indicates that the ability does not have a UI * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ SERVICE, /** * @default Indicates that the ability is used to provide data access services * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ DATA, } @@ -160,10 +154,9 @@ declare namespace bundle { /** * @name AbilitySubType * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable */ export enum AbilitySubType { UNSPECIFIED = 0, @@ -173,37 +166,36 @@ declare namespace bundle { /** * @name DisplayOrientation * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable */ export enum DisplayOrientation { /** * @default Indicates that the system automatically determines the display orientation * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ UNSPECIFIED, /** * @default Indicates the landscape orientation * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ LANDSCAPE, /** * @default Indicates the portrait orientation * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ PORTRAIT, /** * @default Indicates the page ability orientation is the same as that of the nearest ability in the stack * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ FOLLOW_RECENT, } @@ -211,23 +203,22 @@ declare namespace bundle { /** * @name LaunchMode * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable */ export enum LaunchMode { /** * @default Indicates that the ability has only one instance * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ SINGLETON = 0, /** * @default Indicates that the ability can have multiple instances * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ STANDARD = 1, } @@ -235,80 +226,79 @@ declare namespace bundle { /** * @name ExtensionAbilityType * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable * @StageModelOnly */ export enum ExtensionAbilityType { /** * @default Indicates extension info with type of form * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ FORM = 0, /** * @default Indicates extension info with type of work schedule * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ WORK_SCHEDULER = 1, /** * @default Indicates extension info with type of input method * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ INPUTMETHOD = 2, /** * @default Indicates extension info with type of service * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ SERVICE = 3, /** * @default Indicates extension info with type of accessibility * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ ACCESSIBILITY = 4, /** * @default Indicates extension info with type of datashare * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ DATASHARE = 5, /** * @default Indicates extension info with type of fileshare * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ FILESHARE = 6, /** * @default Indicates extension info with type of staticsubscriber * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ STATICSUBSCRIBER = 7, /** * @default Indicates extension info with type of wallpaper * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ WALLPAPER = 8, /** * @default Indicates extension info with type of unspecified * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ UNSPECIFIED = 9, @@ -317,23 +307,22 @@ declare namespace bundle { /** * @name BundleOptions * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable */ export interface BundleOptions { /** * @default Indicates the user id * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ userId?: number; /** * @default Indicates the network id * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ networkId?: string; } @@ -341,10 +330,9 @@ declare namespace bundle { /** * @name InstallErrorCode * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable */ export enum InstallErrorCode{ SUCCESS = 0, @@ -385,9 +373,8 @@ declare namespace bundle { /** * Obtains bundleInfo based on bundleName, bundleFlags and options. * - * @devices phone, tablet, tv, wearable * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the application bundle name to be queried. * @param bundleFlags Indicates the application bundle flags to be queried. * @param options Indicates the bundle options object. @@ -401,9 +388,8 @@ declare namespace bundle { /** * Obtains the interface used to install bundles. * - * @devices phone, tablet, tv, wearable * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @return Returns the IBundleInstaller interface. * @permission ohos.permission.INSTALL_BUNDLE */ @@ -413,9 +399,8 @@ declare namespace bundle { /** * Obtains based on a given bundle name. * - * @devices phone, tablet, tv, wearable * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the application bundle name to be queried. * @param bundleFlags Indicates the flag used to specify information contained in the ApplicationInfo object * that will be returned. @@ -429,9 +414,8 @@ declare namespace bundle { /** * Checks whether a specified bundle has been granted a specific permission. * - * @devices phone, tablet, tv, wearable * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the name of the bundle to check. * @param permission Indicates the permission to check. * @return Returns 0 if the bundle has the permission; returns -1 otherwise. @@ -442,9 +426,8 @@ declare namespace bundle { /** * Query the AbilityInfo by the given Want. * - * @devices phone, tablet, tv, wearable * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param want Indicates the Want containing the application bundle name to * be queried. * @param bundleFlags Indicates the flag used to specify information contained in the AbilityInfo objects that @@ -460,9 +443,8 @@ declare namespace bundle { /** * Obtains BundleInfo of all bundles available in the system. * - * @devices phone, tablet, tv, wearable * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundlelFlag Indicates the flag used to specify information contained in the BundleInfo that will be * returned. * @param userId Indicates the user id. @@ -476,9 +458,8 @@ declare namespace bundle { /** * Obtains information about all installed applications of a specified user. * - * @devices phone, tablet, tv, wearable * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleFlags Indicates the flag used to specify information contained in the ApplicationInfo objects * that will be returned. * @param userId Indicates the user ID. @@ -491,9 +472,8 @@ declare namespace bundle { /** * Obtains information about an application bundle contained in an ohos Ability Package (HAP). * - * @devices phone, tablet, tv, wearable * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param hapFilePath Indicates the path storing the HAP. The path should be the relative path to the data * directory of the current application. * @param bundleFlags Indicates the flag used to specify information contained in the BundleInfo object to be @@ -511,9 +491,8 @@ declare namespace bundle { * #ACTION_HOME and #ENTITY_HOME Want * filters set in the application's config.json file. * - * @devices phone, tablet, tv, wearable * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the bundle name of the application. * @return Returns the Want for starting the application's main ability if any; returns null if * the given bundle does not exist or does not contain any main ability. @@ -525,9 +504,8 @@ declare namespace bundle { /** * Obtains information about the shortcuts of the application. * - * @devices phone, tablet, tv, wearable * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the bundle name of the application. * @return Returns a list of ShortcutInfo objects containing shortcut information about the application. * @permission ohos.permission.MANAGE_SHORTCUTS @@ -538,9 +516,8 @@ declare namespace bundle { /** * get module usage record list in descending order of lastLaunchTime. * - * @devices phone, tablet, tv, wearable * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param maxNum the return size of the records, must be in range of 1 to 1000. * @return Returns ability usage record list. * @systemapi hide this for inner system use @@ -551,9 +528,8 @@ declare namespace bundle { /** * Clears cache data of a specified application. * - * @devices phone, tablet, tv, wearable, car * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the bundle name of the application whose cache data is to be cleared. * @param callback Indicates the callback to be invoked for returning the operation result. * @permission ohos.permission.REMOVE_CACHE_FILES @@ -565,9 +541,8 @@ declare namespace bundle { /** * Sets whether to enable a specified application. * - * @devices phone, tablet, tv, wearable, car * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the bundle name of the application. * @param isEnabled Specifies whether to enable the application. The value true means to enable it, and the * value false means to disable it. @@ -580,9 +555,8 @@ declare namespace bundle { /** * Sets whether to enable a specified ability. * - * @devices phone, tablet, tv, wearable, car * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param abilityInfo Indicates information about the ability to set. * @param isEnabled Specifies whether to enable the ability. The value true means to enable it, and the * value false means to disable it.. @@ -595,9 +569,8 @@ declare namespace bundle { /** * Query extension info of by utilizing a Want. * - * @devices phone, tablet, tv, wearable, car * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param want Indicates the Want containing the application bundle name to be queried. * @param extensionFlags Indicates the flag used to specify information contained in the ExtensionInfo objects that * will be returned. @@ -611,4 +584,4 @@ declare namespace bundle { function queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, userId?: number): Promise>; } -export default bundle; \ No newline at end of file +export default bundle; diff --git a/api/@ohos.bundle.innerBundleManager.d.ts b/api/@ohos.bundle.innerBundleManager.d.ts index 1485e16ec96802bad507590d16d080233b5f4de3..aba733ae16560ca6561d05becfb9b85429ab205d 100644 --- a/api/@ohos.bundle.innerBundleManager.d.ts +++ b/api/@ohos.bundle.innerBundleManager.d.ts @@ -22,8 +22,7 @@ import { ShortcutInfo } from './bundle/shortcutInfo'; * inner bundle manager. * @name innerBundleManager * @since 8 - * @sysCap SystemCapability.Appexecfwk - * @devices phone, tablet, tv, wearable + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA * @systemapi Hide this for inner system use */ @@ -32,9 +31,8 @@ declare namespace innerBundleManager { /** * Obtains based on a given bundleName and userId. * - * @devices phone, tablet, tv, wearable * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the application bundle name to be queried. * @param userId Indicates the id for the user. * @return Returns the LauncherAbilityInfo object. @@ -47,9 +45,8 @@ declare namespace innerBundleManager { /** * Register Callback. * - * @devices phone, tablet, tv, wearable * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param type Indicates the command should be implement. * @param LauncherStatusCallback Indicates the callback to be register. * @return Returns the result or error maeeage. @@ -62,9 +59,8 @@ declare namespace innerBundleManager { /** * UnRegister Callback. * - * @devices phone, tablet, tv, wearable * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param type Indicates the command should be implement. * @return Returns the result or error maeeage. * @permission ohos.permission.LISTEN_BUNDLE_CHANGE @@ -76,9 +72,8 @@ declare namespace innerBundleManager { /** * Obtains based on a given userId. * - * @devices phone, tablet, tv, wearable * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param userId Indicates the id for the user. * @return Returns the LauncherAbilityInfo object. * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED @@ -90,9 +85,8 @@ declare namespace innerBundleManager { /** * Obtains based on a given bundleName. * - * @devices phone, tablet, tv, wearable * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the application bundle name to be queried. * @return Returns the LauncherShortcutInfo object. * @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED @@ -102,4 +96,4 @@ declare namespace innerBundleManager { function getShortcutInfos(bundleName : string) : Promise>; } -export default innerBundleManager; \ No newline at end of file +export default innerBundleManager; diff --git a/api/@ohos.zlib.d.ts b/api/@ohos.zlib.d.ts index abb974b2b034af961083197cdc467fab404de228..a963715b887b0652a8c07ef1e8ad0bd0ab0cd8e2 100644 --- a/api/@ohos.zlib.d.ts +++ b/api/@ohos.zlib.d.ts @@ -19,10 +19,10 @@ declare namespace zlib { /** * @name ErrorCode * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable, car + * */ export enum ErrorCode { ERROR_CODE_OK = 0, @@ -32,10 +32,10 @@ declare namespace zlib { /** * @name CompressLevel * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable, car + * */ export enum CompressLevel { COMPRESS_LEVEL_NO_COMPRESSION = 0, @@ -47,10 +47,10 @@ declare namespace zlib { /** * @name CompressStrategy * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable, car + * */ export enum CompressStrategy { COMPRESS_STRATEGY_DEFAULT_STRATEGY = 0, @@ -63,10 +63,10 @@ declare namespace zlib { /** * @name MemLevel * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable, car + * */ export enum MemLevel { MEM_LEVEL_MIN = 1, @@ -77,10 +77,10 @@ declare namespace zlib { /** * @name Options * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @import NA * @permission NA - * @devices phone, tablet, tv, wearable, car + * */ interface Options { level?: CompressLevel; @@ -91,9 +91,9 @@ declare namespace zlib { /** * Compress the specified file. * - * @devices phone, tablet, tv, wearable, car + * * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param inFile Indicates the path of the file to be compressed. * @param outFile Indicates the path of the output compressed file. * @return Returns error code. @@ -103,9 +103,9 @@ declare namespace zlib { /** * Decompress the specified file. * - * @devices phone, tablet, tv, wearable, car + * * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @param inFile Indicates the path of the file to be decompressed. * @param outFile Indicates the path of the decompressed file. * @return Returns error code. diff --git a/api/bundle/abilityInfo.d.ts b/api/bundle/abilityInfo.d.ts index 90842948a80b5b10af098b94724d11f408c97289..ac744ab3ed38fb22d0da85560ec9bf222f59c4c0 100644 --- a/api/bundle/abilityInfo.d.ts +++ b/api/bundle/abilityInfo.d.ts @@ -21,85 +21,84 @@ import bundle from './../@ohos.bundle'; /** * @name Obtains configuration information about an ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface AbilityInfo { /** * @default Indicates the name of the bundle containing the ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly bundleName: string; /** * @default Ability simplified class name * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly name: string; /** * @default Indicates the label of the ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly label: string; /** * @default Describes the ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly description: string; /** * @default Indicates the icon of the ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly icon: string; /** * @default Indicates the label id of the ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly labelId: number; /** * @default Indicates the description id of the ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly descriptionId: number; /** * @default Indicates the icon id of the ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly iconId: number; /** * @default Indicates the name of the .hap package to which the capability belongs * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly moduleName: string; /** * @default Process of ability, if user do not set it ,the value equal application process * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly process: string; /** * @default Info about which ability is this nick point to * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly targetAbility: string; @@ -107,7 +106,7 @@ export interface AbilityInfo { /** * @default Indicates the background service addressing a specific usage scenario * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly backgroundModes: number; @@ -115,14 +114,14 @@ export interface AbilityInfo { /** * @default Indicates whether an ability can be called by other abilities * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly isVisible: boolean; /** * @default Indicates whether the ability provides the embedded card capability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly formEnabled: boolean; @@ -130,7 +129,7 @@ export interface AbilityInfo { /** * @default Enumerates types of templates that can be used by an ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly type: bundle.AbilityType; @@ -138,7 +137,7 @@ export interface AbilityInfo { /** * @default Enumerates the subType of templates used by an ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly subType: bundle.AbilitySubType; @@ -146,7 +145,7 @@ export interface AbilityInfo { /** * @default Enumerates ability display orientations * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly orientation: bundle.DisplayOrientation; @@ -154,35 +153,35 @@ export interface AbilityInfo { /** * @default Enumerates ability launch modes * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly launchMode: bundle.LaunchMode; /** * @default The permissions that others need to launch this ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly permissions: Array; /** * @default The device types that this ability can run on * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly deviceTypes: Array; /** * @default The device capability that this ability needs * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly deviceCapabilities: Array; /** * @default Indicates the permission required for reading ability data * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly readPermission: string; @@ -190,7 +189,7 @@ export interface AbilityInfo { /** * @default Indicates the permission required for writing data to the ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly writePermission: string; @@ -198,14 +197,14 @@ export interface AbilityInfo { /** * @default Obtains configuration information about an application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly applicationInfo: ApplicationInfo; /** * @default Where form can be displayed * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly formEntity: number; @@ -213,7 +212,7 @@ export interface AbilityInfo { /** * @default Minimum height of ability. * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly minFormHeight: number; @@ -221,7 +220,7 @@ export interface AbilityInfo { /** * @default Default height of ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly defaultFormHeight: number; @@ -229,7 +228,7 @@ export interface AbilityInfo { /** * @default Minimum width of ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly minFormWidth: number; @@ -237,7 +236,7 @@ export interface AbilityInfo { /** * @default Default width of ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly defaultFormWidth: number; @@ -245,7 +244,7 @@ export interface AbilityInfo { /** * @default Uri of ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @FAModelOnly */ readonly uri: string; @@ -253,21 +252,21 @@ export interface AbilityInfo { /** * @default Indicates the custom metadata of ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ customizeData: Map>; /** * @default Indicates the metadata of ability * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly metaData: Array; /** * @default Indicates the metadata of ability * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly * */ @@ -276,7 +275,7 @@ export interface AbilityInfo { /** * @default Indicates the metadata of ability * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly enabled: boolean; } diff --git a/api/bundle/applicationInfo.d.ts b/api/bundle/applicationInfo.d.ts index 9560cf10099a98ee22429d9fb0b6992ee8a126ca..1661df1b1ec904e13f87f8b95290038c51de5d70 100644 --- a/api/bundle/applicationInfo.d.ts +++ b/api/bundle/applicationInfo.d.ts @@ -20,141 +20,140 @@ import { Metadata } from './metadata' /** * @name Obtains configuration information about an application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface ApplicationInfo { /** * @default Indicates the application name, which is the same as {@code bundleName} * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly name: string; /** * @default Description of application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly description: string; /** * @default Indicates the description id of the application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly descriptionId: number; /** * @default Indicates whether the application is a system application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly systemApp: boolean; /** * @default Indicates whether or not this application may be instantiated * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly enabled: boolean; /** * @default Indicates the label of the application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly label: string; /** * @default Indicates the label id of the application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly labelId: string; /** * @default Indicates the icon of the application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly icon: string; /** * @default Indicates the icon id of the application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly iconId: string; /** * @default Process of application, if user do not set it ,the value equal bundleName * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly process: string; /** * @default Indicates the running mode supported by the application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly supportedModes: number; /** * @default Indicates the path storing the module resources of the application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly moduleSourceDirs: Array; /** * @default Indicates the permissions required for accessing the application. * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly permissions: Array; /** * @default Indicates module information about an application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly moduleInfo: Array; /** * @default Indicates the path where the {@code Entry.hap} file of the application is saved * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly entryDir: string; /** * @default Indicates the application source code path * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly codePath: string; /** * @default Indicates the custom metadata of the application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ customizeData: Map; /** * @default Indicates the metadata of module * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly metaData: Map>; /** * @default Indicates the metadata of module * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly metadata: Map>; @@ -162,28 +161,28 @@ export interface ApplicationInfo { /** * @default Indicates whether or not this application may be removable * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly removable: boolean; /** * @default Indicates the access token of the application * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly accessTokenId: number; /** * @default Indicates the uid of the application * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly uid: number; /** * @default Indicates entity type of the application * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly entityType: string; -} \ No newline at end of file +} diff --git a/api/bundle/bundleInfo.d.ts b/api/bundle/bundleInfo.d.ts index e71e1b111758637768124cf96e3ab451b61f0c72..76bc720ba560aa9acc914cb9f9cecbf25d9ae29e 100644 --- a/api/bundle/bundleInfo.d.ts +++ b/api/bundle/bundleInfo.d.ts @@ -21,22 +21,21 @@ import { HapModuleInfo } from './hapModuleInfo'; /** * @name The scene which is used * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface UsedScene { /** * @default Indicates the abilities that need the permission * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ abilities: Array; /** * @default Indicates the time when the permission is used * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ when: string; } @@ -44,29 +43,28 @@ export interface UsedScene { /** * @name Indicates the required permissions details defined in file config.json * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface ReqPermissionDetail { /** * @default Indicates the name of this required permissions * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ name: string; /** * @default Indicates the reason of this required permissions * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ reason: string; /** * @default Indicates the used scene of this required permissions * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ usedScene: UsedScene; } @@ -74,22 +72,21 @@ export interface ReqPermissionDetail { /** * @name Obtains configuration information about a bundle * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface BundleInfo { /** * @default Indicates the name of this bundle * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly name: string; /** * @default Indicates the name of this original bundle * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly type: string; @@ -97,7 +94,7 @@ export interface BundleInfo { * @default Indicates the ID of the application to which this bundle belongs * The application ID uniquely identifies an application. It is determined by the bundle name and signature * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly appId: string; @@ -106,147 +103,147 @@ export interface BundleInfo { * The UID uniquely identifies an application. It is determined by the process and user IDs of the application * After an application is installed, its UID remains unchanged unless it is uninstalled and then reinstalled * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly uid: number; /** * @default Indicates the hap install time * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly installTime: number; /** * @default Indicates the hap update time * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly updateTime: number; /** * @default Obtains configuration information about an application * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly appInfo: ApplicationInfo; /** * @default Obtains configuration information about an ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly abilityInfo: Array; /** * @default Indicates the required permissions name defined in file config.json * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly reqPermissions: Array; /** * @default Indicates the required permissions details defined in file config.json * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly reqPermissionDetails: Array; /** * @default Describes the bundle vendor * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly vendor: string; /** * @default Indicates the version number of the bundle * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly versionCode: number; /** * @default Indicates the text description of the bundle version * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly versionName: string; /** * @default Indicates the compatible version number of the bundle * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly compatibleVersion: number; /** * @default Indicates the target version number of the bundle * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly targetVersion: number; /** * @default Indicates is compress native libs * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly isCompressNativeLibs: boolean; /** * @default Obtains configuration information about an module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly hapModuleInfo: Array; /** * @default Indicates entry module name * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly entryModuleName: string; /** * @default Indicates the cpuAbi information of this bundle. * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly cpuAbi: string; /** * @default Indicates is silent installation * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly isSilentInstallation: string; /** * @default Indicates the earliest historical version compatible with the bundle * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly minCompatibleVersionCode: number; /** * @default Indicates whether free installation of the entry is supported * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly entryInstallationFree: boolean; /** * @default Indicates the grant status of required permissions * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly reqPermissionStates: Array; /** * @default Obtains configuration information about an ability * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly extensionAbilityInfo: Array; diff --git a/api/bundle/bundleInstaller.d.ts b/api/bundle/bundleInstaller.d.ts index 8e4e1b8737ce1c18d1fea4b25467a5970b8bb732..bf44c642035047c1165892c6a79c41006025d0b9 100644 --- a/api/bundle/bundleInstaller.d.ts +++ b/api/bundle/bundleInstaller.d.ts @@ -19,29 +19,28 @@ import bundle from './../@ohos.bundle'; /** * @name Provides parameters required for installing or uninstalling an application. * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface InstallParam { /** * @default Indicates the user id * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ userId: number; /** * @default Indicates the install flag * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ installFlag: number; /** * @default Indicates whether the param has data * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ isKeepData: boolean; } @@ -49,23 +48,22 @@ export interface InstallParam { /** * @name Indicates the install or uninstall status * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface InstallStatus { /** * @default Indicates the install or uninstall error code * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ status: bundle.InstallErrorCode; /** * @default Indicates the install or uninstall result string message * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ statusMessage: string; } @@ -73,17 +71,15 @@ export interface InstallStatus { /** * @name Offers install, upgrade, and remove bundles on the devices. * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface BundleInstaller { /** * Install an application in a HAP. * * @since 7 - * @SysCap SystemCapability.Appexecfwk - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleFilePaths Indicates the path where the bundle of the application is stored. The path should be the * relative path to the data directory of the current application. * @param installParam Indicates other parameters required for the installation. @@ -96,8 +92,7 @@ export interface BundleInstaller { * Uninstall an application. * * @since 7 - * @SysCap SystemCapability.Appexecfwk - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the bundle name of the application to be uninstalled. * @param installParam Indicates other parameters required for the uninstallation. * @return InstallStatus @@ -109,8 +104,7 @@ export interface BundleInstaller { * recover an application. * * @since 8 - * @SysCap SystemCapability.Appexecfwk - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.BundleManager.BundleFramework * @param bundleName Indicates the bundle name of the application to be recovered. * @param installParam Indicates other parameters required for the recover. * @return InstallStatus @@ -118,4 +112,4 @@ export interface BundleInstaller { * @systemapi Hide this for inner system use */ recover(bundleName: string, param: InstallParam, callback: AsyncCallback): void; -} \ No newline at end of file +} diff --git a/api/bundle/bundleStatusCallback.d.ts b/api/bundle/bundleStatusCallback.d.ts index 4f9d172038427f0ed445ce4225401376dc307242..62f02fea6374e29b2e00af650b60bc6656c6c28a 100644 --- a/api/bundle/bundleStatusCallback.d.ts +++ b/api/bundle/bundleStatusCallback.d.ts @@ -19,8 +19,7 @@ * such as the add, update, remove. * @name Contains basic launcher status callback information, which uniquely identifies an LauncherStatusCallback * @since 8 - * @sysCap SystemCapability.Appexecfwk - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.BundleManager.BundleFramework * @permission ohos.permission.LISTEN_BUNDLE_CHANGE * @systemapi Hide this for inner system use */ @@ -28,9 +27,8 @@ declare interface BundleStatusCallback { /** * @name Obtains add callback about an launcherStatusCallback. * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * @devices phone, tablet, tv, wearable, car * @systemapi Hide this for inner system use */ add: (bundleName : string, userId: number) => void; @@ -38,9 +36,8 @@ declare interface BundleStatusCallback { /** * @name Obtains update callback about an launcherStatusCallback. * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * @devices phone, tablet, tv, wearable, car * @systemapi Hide this for inner system use */ update: (bundleName : string, userId: number) => void; @@ -48,10 +45,9 @@ declare interface BundleStatusCallback { /** * @name Obtains remove callback about an launcherStatusCallback. * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission ohos.permission.LISTEN_BUNDLE_CHANGE - * @devices phone, tablet, tv, wearable, car * @systemapi Hide this for inner system use */ remove: (bundleName : string, userId: number) => void; -} \ No newline at end of file +} diff --git a/api/bundle/customizeData.d.ts b/api/bundle/customizeData.d.ts index 66b03f5941c3c103a130cc8c688a0aaf2d197042..1ce29663040550c8fa8ea31a5ad7aa748f41534c 100644 --- a/api/bundle/customizeData.d.ts +++ b/api/bundle/customizeData.d.ts @@ -16,29 +16,28 @@ /** * @name Indicates the custom metadata * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface CustomizeData { /** * @default Indicates the custom metadata name * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ name: string; /** * @default Indicates the custom metadata value * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ value: string; /** * @default Indicates the custom metadata resource * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ extra: string; - } \ No newline at end of file + } diff --git a/api/bundle/elementName.d.ts b/api/bundle/elementName.d.ts index dc99f856a460174a04404894a87ebdb36e29c7eb..357b0bdec477f1547e9652b5adde563eb269e712 100644 --- a/api/bundle/elementName.d.ts +++ b/api/bundle/elementName.d.ts @@ -19,53 +19,47 @@ * such as the device ID, bundle name, and ability name. * @name Contains basic Ability information, which uniquely identifies an ability * @since 7 - * @sysCap SystemCapability.Appexecfwk - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.BundleManager.BundleFramework * @permission N/A */ export interface ElementName { /** * device id * @default - - * @devices phone, tablet, tv, wearable, car * @since 7 - * @sysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ deviceId?: string; /** * bundle name * @default - - * @devices phone, tablet, tv, wearable, car * @since 7 - * @sysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ bundleName: string; /** * ability name * @default ability class name. - * @devices phone, tablet, tv, wearable, car * @since 7 - * @sysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ abilityName: string; /** * uri * @default - - * @devices phone, tablet, tv, wearable, car * @since 7 - * @sysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ uri?: string; /** * shortName * @default - - * @devices phone, tablet, tv, wearable, car * @since 7 - * @sysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ shortName?: string; } diff --git a/api/bundle/extensionAbilityInfo.d.ts b/api/bundle/extensionAbilityInfo.d.ts index f236de96ebb05299625a376150cd4bd49442af42..6f8b87303ff8734ef7df13b8c7eff6a3ff5f4342 100644 --- a/api/bundle/extensionAbilityInfo.d.ts +++ b/api/bundle/extensionAbilityInfo.d.ts @@ -20,16 +20,15 @@ import bundle from './../@ohos.bundle'; /** * @name Obtains extension information about a bundle * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car * @StageModelOnly */ export interface ExtensionAbilityInfo { /** * @default Indicates the name of the bundle * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly bundleName: string; @@ -37,7 +36,7 @@ export interface ExtensionAbilityInfo { /** * @default Indicates the name of the module * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly moduleName: string; @@ -45,7 +44,7 @@ export interface ExtensionAbilityInfo { /** * @default Indicates the name of the extension info * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly name: string; @@ -53,7 +52,7 @@ export interface ExtensionAbilityInfo { /** * @default Indicates the label id of the entension info * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly labelId: number; @@ -61,7 +60,7 @@ export interface ExtensionAbilityInfo { /** * @default Indicates the description id of the entension info * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly descriptionId: number; @@ -69,7 +68,7 @@ export interface ExtensionAbilityInfo { /** * @default Indicates the icon id of the entension info * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly iconId: number; @@ -77,7 +76,7 @@ export interface ExtensionAbilityInfo { /** * @default Indicates whether the entensionInfo can be visible or not * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly isVisible: boolean; @@ -85,7 +84,7 @@ export interface ExtensionAbilityInfo { /** * @default Enumerates types of the entension info * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly extensionAbilityType: bundle.ExtensionAbilityType; @@ -93,7 +92,7 @@ export interface ExtensionAbilityInfo { /** * @default The permissions that others need to use this extension info * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly permissions: Array; @@ -101,7 +100,7 @@ export interface ExtensionAbilityInfo { /** * @default Obtains configuration information about an application * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly applicationInfo: ApplicationInfo; @@ -109,7 +108,7 @@ export interface ExtensionAbilityInfo { /** * @default Indicates the metadata of bundle * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly metadata: Array; @@ -117,7 +116,7 @@ export interface ExtensionAbilityInfo { /** * @default Indicates the src language to express extension info * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly enabled: boolean; @@ -125,7 +124,7 @@ export interface ExtensionAbilityInfo { /** * @default Indicates the read permission extension ability info * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly readPermission: string; @@ -133,7 +132,7 @@ export interface ExtensionAbilityInfo { /** * @default Indicates the write permission of extension ability info * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly writePermission: string; diff --git a/api/bundle/hapModuleInfo.d.ts b/api/bundle/hapModuleInfo.d.ts index e845f567344d161f17bf8450945ca468729d052b..429176bcba93ebf38f6a8d397f1a1e20048ab5b0 100644 --- a/api/bundle/hapModuleInfo.d.ts +++ b/api/bundle/hapModuleInfo.d.ts @@ -19,114 +19,113 @@ import { ExtensionAbilityInfo } from "./extensionAbilityInfo"; /** * @name Obtains configuration information about an module. * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface HapModuleInfo { /** * @default Indicates the name of this hapmodule * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly name: string; /** * @default Describes the hapmodule * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly description: string; /** * @default Indicates the description of this hapmodule * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly descriptionId: number; /** * @default Indicates the icon of this hapmodule * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly icon: string; /** * @default Indicates the label of this hapmodule * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly label: string; /** * @default Indicates the label id of this hapmodule * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly labelId: number; /** * @default Indicates the icon id of this hapmodule * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly iconId: number; /** * @default Indicates the background img of this hapmodule * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly backgroundImg: string; /** * @default Indicates the supported modes of this hapmodule * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly supportedModes: number; /** * @default Indicates the req capabilities of this hapmodule * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly reqCapabilities: Array; /** * @default The device types that this hapmodule can run on * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly deviceTypes: Array; /** * @default Obtains configuration information about ability * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly abilityInfo: Array; /** * @default Indicates the name of the .hap package to which the capability belongs * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly moduleName: string; /** * @default Indicates the main ability name of this hapmodule * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly mainAbilityName: string; /** * @default Indicates whether free installation of the hapmodule is supported * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly installationFree: boolean; /** * @default Indicates main elementName of the module * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly mainElementName: string; /** * @default Obtains configuration information about extension ability * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ readonly extensionAbilityInfo: Array; -} \ No newline at end of file +} diff --git a/api/bundle/launcherAbilityInfo.d.ts b/api/bundle/launcherAbilityInfo.d.ts index df270c97d913d77ae5ce589cda35b31d0cd96be0..82148e9f29decc201ef7cad81099e262ea1abe3f 100644 --- a/api/bundle/launcherAbilityInfo.d.ts +++ b/api/bundle/launcherAbilityInfo.d.ts @@ -19,8 +19,7 @@ * such as the application Info , elementName, labelId, iconId, userId, installTime. * @name Contains basic launcher Ability information, which uniquely identifies an LauncherAbilityInfo * @since 8 - * @sysCap SystemCapability.Appexecfwk - * @devices phone, tablet, tv, wearable, car + * @syscap SystemCapability.BundleManager.BundleFramework * @permission N/A * @systemapi Hide this for inner system use */ @@ -32,54 +31,48 @@ export interface LauncherAbilityInfo { /** * @name Obtains application info information about an launcher ability. * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ readonly applicationInfo: ApplicationInfo; /** * @name Obtains element name about an launcher ability. * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ readonly elementName : ElementName; /** * @name Obtains labelId about an launcher ability. * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ readonly labelId: number; /** * @name Obtains iconId about an launcher ability. * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ readonly iconId: number; /** * @name Obtains userId about an launcher ability. * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ readonly userId: number; /** * @name Obtains installTime about an launcher ability. * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ readonly installTime : number; -} \ No newline at end of file +} diff --git a/api/bundle/metadata.d.ts b/api/bundle/metadata.d.ts index 31549fda79ff1ec8794500bceea3dda7dcaf886e..b145ec55d4f12aaadccbe0f5addfef4c4e7c0eed 100644 --- a/api/bundle/metadata.d.ts +++ b/api/bundle/metadata.d.ts @@ -16,16 +16,15 @@ /** * @name Indicates the Metadata * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car * @StageModelOnly */ export interface Metadata { /** * @default Indicates the metadata name * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ name: string; @@ -33,7 +32,7 @@ /** * @default Indicates the metadata value * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ value: string; @@ -41,8 +40,8 @@ /** * @default Indicates the metadata resource * @since 9 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @StageModelOnly */ resource: string; - } \ No newline at end of file + } diff --git a/api/bundle/moduleInfo.d.ts b/api/bundle/moduleInfo.d.ts index b4d9ee36e9da6eab4a93b66f9f30e2350f87791f..9d5185ee39772e6334de0bc8794a0020c7a220a7 100644 --- a/api/bundle/moduleInfo.d.ts +++ b/api/bundle/moduleInfo.d.ts @@ -16,18 +16,16 @@ /** * @name Stores module information about an application. * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface ModuleInfo { /** * The module name. * * @default Indicates the name of the .hap package to which the capability belongs - * @devices phone, tablet, tv, wearable, car * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly moduleName: string; @@ -35,9 +33,8 @@ * The module source path. * * @default Indicates the module source dir of this module - * @devices phone, tablet, tv, wearable, car * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly moduleSourceDir: string; -} \ No newline at end of file +} diff --git a/api/bundle/moduleUsageRecord.d.ts b/api/bundle/moduleUsageRecord.d.ts index 6dded504ce0efb9d8b6366ee1bd3280586ccf47a..156c47172cdeb6eaf66b858ef5712d85e1dfa497 100644 --- a/api/bundle/moduleUsageRecord.d.ts +++ b/api/bundle/moduleUsageRecord.d.ts @@ -16,88 +16,87 @@ /** * @name Stores FA usage information. * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car * @systemapi hide this for inner system use */ export interface ModuleUsageRecord { /** * @default Indicates the name of the bundle containing the module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly bundleName: string; /** * @default Indicates the app label id of this module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly appLabelId: number; /** * @default Indicates the name of this module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly name: string; /** * @default Indicates the label id of this module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly labelId: number; /** * @default Indicates the description id of this module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly descriptionId: number; /** * @default Indicates the ability name of this module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly abilityName: string; /** * @default Indicates the ability label id of this module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly abilityLabelId: number; /** * @default Indicates the ability description id of this module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly abilityDescriptionId: number; /** * @default Indicates the ability icon id of this module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly abilityIconId: number; /** * @default Indicates the launched count of this module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly launchedCount: number; /** * @default Indicates the last launch time of this module * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly lastLaunchTime: number; /** * @default Indicates whether the module is removed * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly isRemoved: boolean; /** * @default Indicates whether free installation of the module is supported * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly installationFreeSupported: boolean; -} \ No newline at end of file +} diff --git a/api/bundle/shortcutInfo.d.ts b/api/bundle/shortcutInfo.d.ts index 77a67c96d54789f05aa60c5e4a5d99b091d2cd1d..f046c50504240f1d4a60e85a3c46318b189244f8 100644 --- a/api/bundle/shortcutInfo.d.ts +++ b/api/bundle/shortcutInfo.d.ts @@ -17,21 +17,20 @@ * @name Provides methods for obtaining information about the ability that a shortcut will start, including the target * bundle name and ability class name. * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface ShortcutWant{ /** * @default Indicates the target bundle of the shortcut want * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly targetBundle: string; /** * @default Indicates the target class of the shortcut want * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly targetClass: string; } @@ -39,81 +38,80 @@ /** * @name Provides information about a shortcut, including the shortcut ID and label. * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework * @permission NA - * @devices phone, tablet, tv, wearable, car */ export interface ShortcutInfo { /** * @default Indicates the ID of the application to which this shortcut belongs * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly id: string; /** * @default Indicates the name of the bundle containing the shortcut * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly bundleName: string; /** * @default Indicates the host ability of the shortcut * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly hostAbility: string; /** * @default Indicates the icon of the shortcut * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly icon: string; /** * @default Indicate s the icon id of the shortcut * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly iconId: number; /** * @default Indicates the label of the shortcut * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly label: string; /** * @default Indicates the label id of the shortcut * @since 8 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly labelId: number; /** * @default Indicates the disableMessage of the shortcut * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly disableMessage: string; /** * @default Indicates the wants of the shortcut * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly wants: Array; /** * @default Indicates whether the shortcut is static * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly isStatic?: boolean /** * @default Indicates whether the shortcut is homeshortcut * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly isHomeShortcut?: boolean; /** * @default Indicates whether the shortcut is enabled * @since 7 - * @SysCap SystemCapability.Appexecfwk + * @syscap SystemCapability.BundleManager.BundleFramework */ readonly isEnabled?: boolean; - } \ No newline at end of file + }