From 75979dc79c24be3499ea1ba865233a031d6f8421 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Sun, 20 Jul 2025 14:04:43 +0800 Subject: [PATCH] =?UTF-8?q?number=E8=BD=ACint=E3=80=81double=E3=80=81long?= =?UTF-8?q?=E7=9A=84sdk=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangzezhong --- api/@ohos.app.ability.AbilityConstant.d.ts | 24 ++-- api/@ohos.app.ability.ChildProcessArgs.d.ts | 4 +- api/@ohos.app.ability.Configuration.d.ts | 12 +- api/@ohos.app.ability.StartOptions.d.ts | 40 +++---- api/@ohos.app.ability.Want.d.ts | 8 +- api/@ohos.app.ability.abilityManager.d.ts | 24 ++-- api/@ohos.app.ability.appManager.d.ts | 108 +++++++++--------- ...@ohos.app.ability.childProcessManager.d.ts | 16 +-- api/@ohos.app.ability.dialogRequest.d.ts | 69 ++++++----- api/@ohos.app.ability.dialogSession.d.ts | 20 ++-- api/@ohos.app.ability.insightIntent.d.ts | 8 +- ...@ohos.app.ability.insightIntentDriver.d.ts | 8 +- api/@ohos.app.ability.quickFixManager.d.ts | 8 +- api/@ohos.app.ability.wantAgent.d.ts | 20 ++-- api/@ohos.app.appstartup.StartupConfig.d.ts | 4 +- ...ohos.application.uriPermissionManager.d.ts | 18 +-- api/ability/abilityResult.d.ts | 4 +- api/app/processInfo.d.ts | 4 +- api/application/AbilityDelegator.d.ts | 36 +++--- .../AbilityFirstFrameStateData.d.ts | 4 +- api/application/AbilityRunningInfo.d.ts | 12 +- api/application/AbilityStateData.d.ts | 20 ++-- api/application/AutoFillPopupConfig.d.ts | 8 +- api/application/AutoFillRect.d.ts | 16 +-- api/application/AutoStartupInfo.d.ts | 12 +- api/application/BusinessAbilityInfo.d.ts | 12 +- api/application/Context.d.ts | 4 +- api/application/ExtensionRunningInfo.d.ts | 12 +- api/application/KioskStatus.d.ts | 4 +- api/application/MissionInfo.d.ts | 12 +- api/application/MissionListener.d.ts | 28 ++--- api/application/PageNodeInfo.d.ts | 8 +- api/application/ProcessData.d.ts | 12 +- api/application/ProcessInformation.d.ts | 12 +- api/application/RunningAppClone.d.ts | 12 +- api/application/RunningMultiInstanceInfo.d.ts | 8 +- api/application/ServiceExtensionContext.d.ts | 50 ++++---- api/application/UIAbilityContext.d.ts | 70 ++++++------ api/application/UIExtensionContext.d.ts | 16 +-- .../UIServiceExtensionContext.d.ts | 8 +- api/application/shellCmdResult.d.ts | 4 +- 41 files changed, 397 insertions(+), 382 deletions(-) diff --git a/api/@ohos.app.ability.AbilityConstant.d.ts b/api/@ohos.app.ability.AbilityConstant.d.ts index 5fa367af1e..574ba2bd5e 100644 --- a/api/@ohos.app.ability.AbilityConstant.d.ts +++ b/api/@ohos.app.ability.AbilityConstant.d.ts @@ -204,14 +204,14 @@ declare namespace AbilityConstant { /** * ID of the process where the ability is running when it exits last time. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - pid: number; + pid: int; /** * Name of the process. @@ -228,26 +228,26 @@ declare namespace AbilityConstant { /** * UID of the application. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - uid: number; + uid: int; /** * Specific reason for the last exit of the ability. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - exitSubReason: number; + exitSubReason: int; /** * Reason why the process was killed. @@ -264,38 +264,38 @@ declare namespace AbilityConstant { /** * RSS value of the process. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - rss: number; + rss: int; /** * PSS value of the process. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - pss: number; + pss: int; /** * Exact time when the ability last exits. * - * @type { number } + * @type { long } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - timestamp: number; + timestamp: long; /** * The process state when the process exits. diff --git a/api/@ohos.app.ability.ChildProcessArgs.d.ts b/api/@ohos.app.ability.ChildProcessArgs.d.ts index 95fbe68e3c..dd2473aedf 100644 --- a/api/@ohos.app.ability.ChildProcessArgs.d.ts +++ b/api/@ohos.app.ability.ChildProcessArgs.d.ts @@ -41,10 +41,10 @@ export interface ChildProcessArgs { /** * Indicates file descriptors that use to communicate between two processes. * - * @type { ?Record } + * @type { ?Record } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since 12 */ - fds?: Record; + fds?: Record; } \ No newline at end of file diff --git a/api/@ohos.app.ability.Configuration.d.ts b/api/@ohos.app.ability.Configuration.d.ts index e8139c14bc..94322a7f33 100644 --- a/api/@ohos.app.ability.Configuration.d.ts +++ b/api/@ohos.app.ability.Configuration.d.ts @@ -164,13 +164,13 @@ export interface Configuration { /** * Indicates the displayId of the current device. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Ability.AbilityBase * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - displayId?: number; + displayId?: long; /** * Indicates whether a pointer type device has connected. @@ -211,25 +211,25 @@ export interface Configuration { /** * Indicates the font size scale. * - * @type { ?number } + * @type { ?double } * @syscap SystemCapability.Ability.AbilityBase * @crossplatform * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - fontSizeScale?: number; + fontSizeScale?: double; /** * Indicates the font weight scale. * - * @type { ?number } + * @type { ?double } * @syscap SystemCapability.Ability.AbilityBase * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - fontWeightScale?: number; + fontWeightScale?: double; /** * Indicates the mobile country code. diff --git a/api/@ohos.app.ability.StartOptions.d.ts b/api/@ohos.app.ability.StartOptions.d.ts index 07b51995b5..2a92d5e1ef 100644 --- a/api/@ohos.app.ability.StartOptions.d.ts +++ b/api/@ohos.app.ability.StartOptions.d.ts @@ -47,13 +47,13 @@ export default class StartOptions { * {@link ohos.app.ability.AbilityConstant#WindowMode.WINDOW_MODE_SPLIT_SECONDARY} are * valid only in intra-app redirection scenarios. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - windowMode?: number; + windowMode?: int; /** * The type of displayId @@ -66,14 +66,14 @@ export default class StartOptions { /** * The type of displayId * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - displayId?: number; + displayId?: long; /** * The target ability with animation or without @@ -89,46 +89,46 @@ export default class StartOptions { /** * The left position of window rectangle * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - windowLeft?: number; + windowLeft?: int; /** * The top position of window rectangle * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - windowTop?: number; + windowTop?: int; /** * The width of window rectangle * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - windowWidth?: number; + windowWidth?: int; /** * The height of window rectangle * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - windowHeight?: number; + windowHeight?: int; /** * Indicates the cold startup window is focused. @@ -204,46 +204,46 @@ export default class StartOptions { /** * The min width of window rectangle. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since arkts{ '1.1':'17','1.2':'20'} * @arkts 1.1&1.2 */ - minWindowWidth?: number; + minWindowWidth?: int; /** * The min height of window rectangle. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since arkts{ '1.1':'17','1.2':'20'} * @arkts 1.1&1.2 */ - minWindowHeight?: number; + minWindowHeight?: int; /** * The max width of window rectangle. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since arkts{ '1.1':'17','1.2':'20'} * @arkts 1.1&1.2 */ - maxWindowWidth?: number; + maxWindowWidth?: int; /** * The max height of window rectangle. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since arkts{ '1.1':'17','1.2':'20'} * @arkts 1.1&1.2 */ - maxWindowHeight?: number; + maxWindowHeight?: int; /** * The completion handler of StartAbility. diff --git a/api/@ohos.app.ability.Want.d.ts b/api/@ohos.app.ability.Want.d.ts index ae262892e8..3f97d2f34c 100644 --- a/api/@ohos.app.ability.Want.d.ts +++ b/api/@ohos.app.ability.Want.d.ts @@ -190,12 +190,12 @@ export default class Want { * For example, wantConstant.Flags.FLAG_ABILITY_CONTINUATION specifies whether to start the ability in cross-device * migration scenarios. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityBase * @atomicservice * @since 11 */ - flags?: number; + flags?: int; /** * The description of an action in an want. @@ -358,12 +358,12 @@ export default class Want { * You can obtain the FD from fs.open. When the FD is no longer needed, you must call fs.close to destroy the FD in a * timely manner to prevent FD leakage. * - * @type { ?Record } + * @type { ?Record } * @readonly * @syscap SystemCapability.Ability.AbilityBase * @atomicservice * @since arkts {'1.1':'15', '1.2':'20'} * @arkts 1.1&1.2 */ - readonly fds?: Record; + readonly fds?: Record; } diff --git a/api/@ohos.app.ability.abilityManager.d.ts b/api/@ohos.app.ability.abilityManager.d.ts index 5d373122bc..62e7a8c807 100644 --- a/api/@ohos.app.ability.abilityManager.d.ts +++ b/api/@ohos.app.ability.abilityManager.d.ts @@ -295,7 +295,7 @@ declare namespace abilityManager { * obtain information about the current extension. * * @permission ohos.permission.GET_RUNNING_INFO - * @param { number } upperLimit - Get the maximum limit of the number of messages. + * @param { int } upperLimit - Get the maximum limit of the number of messages. * @returns { Promise> } Returns the array of ExtensionRunningInfo. * @throws { BusinessError } 202 - Not system application. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -305,14 +305,14 @@ declare namespace abilityManager { * @systemapi * @since 9 */ - function getExtensionRunningInfos(upperLimit: number): Promise>; + function getExtensionRunningInfos(upperLimit: int): Promise>; /** * If you apply for permission, you can obtain information about all extensions. If you do not apply, you can only * obtain information about the current extension. * * @permission ohos.permission.GET_RUNNING_INFO - * @param { number } upperLimit - Get the maximum limit of the number of messages. + * @param { int } upperLimit - Get the maximum limit of the number of messages. * @param { AsyncCallback> } callback - The callback is used to return the array of * ExtensionRunningInfo. * @throws { BusinessError } 202 - Not system application. @@ -323,7 +323,7 @@ declare namespace abilityManager { * @systemapi * @since 9 */ - function getExtensionRunningInfos(upperLimit: number, callback: AsyncCallback>): void; + function getExtensionRunningInfos(upperLimit: int, callback: AsyncCallback>): void; /** * Get the top ability information of the display. @@ -370,7 +370,7 @@ declare namespace abilityManager { /** * Acquire the shared data from target ability. * - * @param { number } missionId - The missionId of target ability. + * @param { int } missionId - The missionId of target ability. * @param { AsyncCallback> } callback - The callback is used to return the params of sharing * data and result code. * @throws { BusinessError } 202 - Not system application. @@ -381,7 +381,7 @@ declare namespace abilityManager { * @systemapi * @since 11 */ - function acquireShareData(missionId: number, callback: AsyncCallback>): void; + function acquireShareData(missionId: int, callback: AsyncCallback>): void; /** * Acquire the shared data from target ability. @@ -399,7 +399,7 @@ declare namespace abilityManager { /** * Acquire the shared data from target ability. * - * @param { number } missionId - The missionId of target ability. + * @param { int } missionId - The missionId of target ability. * @returns { Promise> } The promise returned by the function. * @throws { BusinessError } 202 - Not system application. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -409,12 +409,12 @@ declare namespace abilityManager { * @systemapi * @since 11 */ - function acquireShareData(missionId: number): Promise>; + function acquireShareData(missionId: int): Promise>; /** * Notify the result of save as to target ability. * @param { AbilityResult } parameter - Indicates the result to return. - * @param { number } requestCode - Request code defined by the user. + * @param { int } requestCode - Request code defined by the user. * @param { AsyncCallback } callback - The callback of the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. @@ -426,12 +426,12 @@ declare namespace abilityManager { * @StageModelOnly * @since 10 */ - function notifySaveAsResult(parameter: AbilityResult, requestCode: number, callback: AsyncCallback): void; + function notifySaveAsResult(parameter: AbilityResult, requestCode: int, callback: AsyncCallback): void; /** * Notify the result of save as to target ability. * @param { AbilityResult } parameter - Indicates the result to return. - * @param { number } requestCode - Request code defined by the user. + * @param { int } requestCode - Request code defined by the user. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. @@ -443,7 +443,7 @@ declare namespace abilityManager { * @StageModelOnly * @since 10 */ - function notifySaveAsResult(parameter: AbilityResult, requestCode: number): Promise; + function notifySaveAsResult(parameter: AbilityResult, requestCode: int): Promise; /** * Get the foreground ui abilities. diff --git a/api/@ohos.app.ability.appManager.d.ts b/api/@ohos.app.ability.appManager.d.ts index 3da7dcbd60..998a144560 100644 --- a/api/@ohos.app.ability.appManager.d.ts +++ b/api/@ohos.app.ability.appManager.d.ts @@ -352,12 +352,12 @@ declare namespace appManager { /** * The user id of setter. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since 20 */ - setterUserId?: number; + setterUserId?: int; /** * Weather allow user to cancel keep-alive status. @@ -376,7 +376,7 @@ declare namespace appManager { * @permission ohos.permission.RUNNING_STATE_OBSERVER * @param { 'applicationState' } type - applicationState. * @param { ApplicationStateObserver } observer - The application state observer. - * @returns { number } Returns the number code of the observer. + * @returns { int } Returns the number code of the observer. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -384,7 +384,7 @@ declare namespace appManager { * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 14 */ - function on(type: 'applicationState', observer: ApplicationStateObserver): number; + function on(type: 'applicationState', observer: ApplicationStateObserver): int; /** * Register application state observer. @@ -393,7 +393,7 @@ declare namespace appManager { * @param { 'applicationState' } type - applicationState. * @param { ApplicationStateObserver } observer - The application state observer. * @param { Array } bundleNameList - The list of bundleName. The max length is 128. - * @returns { number } Returns the number code of the observer. + * @returns { int } Returns the number code of the observer. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -401,7 +401,7 @@ declare namespace appManager { * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 14 */ - function on(type: 'applicationState', observer: ApplicationStateObserver, bundleNameList: Array): number; + function on(type: 'applicationState', observer: ApplicationStateObserver, bundleNameList: Array): int; /** * Register app foreground or background state observer. @@ -443,7 +443,7 @@ declare namespace appManager { * * @permission ohos.permission.RUNNING_STATE_OBSERVER * @param { 'applicationState' } type - applicationState. - * @param { number } observerId - Indicates the number code of the observer. + * @param { int } observerId - Indicates the number code of the observer. * @param { AsyncCallback } callback - The callback of off. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -452,14 +452,14 @@ declare namespace appManager { * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 15 */ - function off(type: 'applicationState', observerId: number, callback: AsyncCallback): void; + function off(type: 'applicationState', observerId: int, callback: AsyncCallback): void; /** * Unregister application state observer. * * @permission ohos.permission.RUNNING_STATE_OBSERVER * @param { 'applicationState' } type - applicationState. - * @param { number } observerId - Indicates the number code of the observer. + * @param { int } observerId - Indicates the number code of the observer. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -468,7 +468,7 @@ declare namespace appManager { * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 14 */ - function off(type: 'applicationState', observerId: number): Promise; + function off(type: 'applicationState', observerId: int): Promise; /** * Unregister app foreground or background state observer. @@ -558,7 +558,7 @@ declare namespace appManager { * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS and ohos.permission.KILL_APP_PROCESSES * or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS and ohos.permission.CLEAN_BACKGROUND_PROCESSES * @param { string } bundleName - The process bundle name. - * @param { number } accountId - The account id. + * @param { int } accountId - The account id. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. @@ -570,7 +570,7 @@ declare namespace appManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function killProcessWithAccount(bundleName: string, accountId: number): Promise; + function killProcessWithAccount(bundleName: string, accountId: int): Promise; /** * Kill process with account. @@ -578,9 +578,9 @@ declare namespace appManager { * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS and ohos.permission.KILL_APP_PROCESSES * or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS and ohos.permission.CLEAN_BACKGROUND_PROCESSES * @param { string } bundleName - The process bundle name. - * @param { number } accountId - The account id. + * @param { int } accountId - The account id. * @param { boolean } clearPageStack - The flag that indicates whether the page stack need to be cleared. - * @param { number } [appIndex] - The application index. + * @param { int } [appIndex] - The application index. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. @@ -591,7 +591,7 @@ declare namespace appManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function killProcessWithAccount(bundleName: string, accountId: number, clearPageStack: boolean, appIndex?: number): + function killProcessWithAccount(bundleName: string, accountId: int, clearPageStack: boolean, appIndex?: int): Promise; /** @@ -616,7 +616,7 @@ declare namespace appManager { * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS and ohos.permission.KILL_APP_PROCESSES * or ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS and ohos.permission.CLEAN_BACKGROUND_PROCESSES * @param { string } bundleName - The process bundle name. - * @param { number } accountId - The account id. + * @param { int } accountId - The account id. * @param { AsyncCallback } callback - The callback of killProcessWithAccount. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. @@ -628,7 +628,7 @@ declare namespace appManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function killProcessWithAccount(bundleName: string, accountId: number, callback: AsyncCallback): void; + function killProcessWithAccount(bundleName: string, accountId: int, callback: AsyncCallback): void; /** * Is user running in stability test. @@ -713,7 +713,7 @@ declare namespace appManager { * @permission ohos.permission.KILL_APP_PROCESSES or ohos.permission.CLEAN_BACKGROUND_PROCESSES * @param { string } bundleName - bundle name. * @param { boolean } clearPageStack - The flag that indicates whether the page stack need to be cleared. - * @param { number } [appIndex] - The index of clone app. + * @param { int } [appIndex] - The index of clone app. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - If the input parameter is not valid parameter. @@ -722,7 +722,7 @@ declare namespace appManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function killProcessesByBundleName(bundleName: string, clearPageStack: boolean, appIndex?: number): Promise; + function killProcessesByBundleName(bundleName: string, clearPageStack: boolean, appIndex?: int): Promise; /** * Kill processes by bundle name @@ -845,14 +845,14 @@ declare namespace appManager { /** * Get the memory size of the application * - * @returns { Promise } Returns the application memory size. + * @returns { Promise } Returns the application memory size. * @throws { BusinessError } 16000050 - Internal error. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAppMemorySize(): Promise; + function getAppMemorySize(): Promise; /** * Get the memory size of the application @@ -867,7 +867,7 @@ declare namespace appManager { /** * Get the memory size of the application * - * @param { AsyncCallback } callback - The callback is used to return the application memory size. + * @param { AsyncCallback } callback - The callback is used to return the application memory size. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 16000050 - Internal error. @@ -876,7 +876,7 @@ declare namespace appManager { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - function getAppMemorySize(callback: AsyncCallback): void; + function getAppMemorySize(callback: AsyncCallback): void; /** * If you apply for permission, you can obtain information about all running processes. @@ -950,7 +950,7 @@ declare namespace appManager { * * @permission ohos.permission.GET_RUNNING_INFO * @param { string } bundleName - Indicates the bundle name of the shared bundle. - * @param { number } versionCode - Indicates the version code of the shared bundle. + * @param { long } versionCode - Indicates the version code of the shared bundle. * @returns { Promise } Returns the shared bundle running result. The result is true if running, false otherwise. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. @@ -962,14 +962,14 @@ declare namespace appManager { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - function isSharedBundleRunning(bundleName: string, versionCode: number): Promise; + function isSharedBundleRunning(bundleName: string, versionCode: long): Promise; /** * Check whether the shared bundle is running. * * @permission ohos.permission.GET_RUNNING_INFO * @param { string } bundleName - Indicates the bundle name of the shared bundle. - * @param { number } versionCode - Indicates the version code of the shared bundle. + * @param { long } versionCode - Indicates the version code of the shared bundle. * @param { AsyncCallback } callback - The callback of checking the shared bundle running result. * The result is true if running, false otherwise. * @throws { BusinessError } 201 - Permission denied. @@ -982,13 +982,13 @@ declare namespace appManager { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - function isSharedBundleRunning(bundleName: string, versionCode: number, callback: AsyncCallback): void; + function isSharedBundleRunning(bundleName: string, versionCode: long, callback: AsyncCallback): void; /** * Obtains memory usage of one process by its pid. * - * @param { number } pid - Indicates the pid of the process. - * @returns { Promise } Returns the memory usage of the process in KB. + * @param { int } pid - Indicates the pid of the process. + * @returns { Promise } Returns the memory usage of the process in KB. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -998,13 +998,13 @@ declare namespace appManager { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - function getProcessMemoryByPid(pid: number): Promise; + function getProcessMemoryByPid(pid: int): Promise; /** * Obtains memory usage of one process by its pid. * - * @param { number } pid - Indicates the pid of the process. - * @param { AsyncCallback } callback - Indicates the callback of getting process memory by pid result. + * @param { int } pid - Indicates the pid of the process. + * @param { AsyncCallback } callback - Indicates the callback of getting process memory by pid result. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -1014,7 +1014,7 @@ declare namespace appManager { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - function getProcessMemoryByPid(pid: number, callback: AsyncCallback): void; + function getProcessMemoryByPid(pid: int, callback: AsyncCallback): void; /** * Obtains the process information list of running processes that belong to a specific bundle of current user. @@ -1036,7 +1036,7 @@ declare namespace appManager { * Obtains the process information list of running processes that belong to a specific bundle and specific user ID. * * @param { string } bundleName - Indicates the bundle name of the application to which the processes belong to. - * @param { number } userId - Indicates the user ID of the application to which the processes belong to. + * @param { int } userId - Indicates the user ID of the application to which the processes belong to. * @param { AsyncCallback> } callback - Indicates the callback of getting process information by bundleName result. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -1047,7 +1047,7 @@ declare namespace appManager { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - function getRunningProcessInfoByBundleName(bundleName: string, userId: number, callback: AsyncCallback>): void; + function getRunningProcessInfoByBundleName(bundleName: string, userId: int, callback: AsyncCallback>): void; /** * Obtains the process information list of running processes that belong to a specific bundle of current user. @@ -1069,7 +1069,7 @@ declare namespace appManager { * Obtains the process information list of running processes that belong to a specific bundle and specific user ID. * * @param { string } bundleName - Indicates the bundle name of the application to which the processes belong to. - * @param { number } userId - Indicates the user ID of the application to which the processes belong to. + * @param { int } userId - Indicates the user ID of the application to which the processes belong to. * @returns { Promise> } Returns a list of process information. * @throws { BusinessError } 202 - Permission denied, non-system app called system api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -1080,7 +1080,7 @@ declare namespace appManager { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - function getRunningProcessInfoByBundleName(bundleName: string, userId: number): Promise>; + function getRunningProcessInfoByBundleName(bundleName: string, userId: int): Promise>; /** * Check whether the bundle is running. @@ -1122,9 +1122,9 @@ declare namespace appManager { * * @permission ohos.permission.PRELOAD_APPLICATION * @param { string } bundleName - The bundle name of the application to preload. - * @param { number } userId - Indicates the user identification. + * @param { int } userId - Indicates the user identification. * @param { PreloadMode } mode - Preload application mode. - * @param { number } [appIndex] - The index of application clone. + * @param { int } [appIndex] - The index of application clone. * @returns { Promise } Returns the result of preloadApplication. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - Not system application. @@ -1138,7 +1138,7 @@ declare namespace appManager { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function preloadApplication(bundleName: string, userId: number, mode: PreloadMode, appIndex?: number): Promise; + function preloadApplication(bundleName: string, userId: int, mode: PreloadMode, appIndex?: int): Promise; /** * Get all running multi app info by bundleName @@ -1165,7 +1165,7 @@ declare namespace appManager { * * @permission ohos.permission.GET_RUNNING_INFO * @param { string } bundleName - Indicates the bundle name of the bundle. - * @param { number } [appCloneIndex] - app clone index + * @param { int } [appCloneIndex] - app clone index * @returns { Promise } Returns the bundle running result. The result is true if running, false otherwise. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -1176,14 +1176,14 @@ declare namespace appManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function isAppRunning(bundleName: string, appCloneIndex?: number): Promise; + function isAppRunning(bundleName: string, appCloneIndex?: int): Promise; /** * Clear up application data by bundle name * * @permission ohos.permission.CLEAN_APPLICATION_DATA * @param { string } bundleName - bundle name. - * @param { number } [appCloneIndex] - app clone index + * @param { int } [appCloneIndex] - app clone index * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. @@ -1195,13 +1195,13 @@ declare namespace appManager { * @systemapi * @since 13 */ - function clearUpAppData(bundleName: string, appCloneIndex?: number): Promise; + function clearUpAppData(bundleName: string, appCloneIndex?: int): Promise; /** * Terminate the mission of a UIAbility and back to caller. * * @permission ohos.permission.KILL_APP_PROCESSES - * @param { number } missionId - The mission id of the UIAbility need to be terminated. + * @param { int } missionId - The mission id of the UIAbility need to be terminated. * @returns { Promise } Returns the result of terminateMission. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. @@ -1212,14 +1212,14 @@ declare namespace appManager { * @systemapi * @since 13 */ - function terminateMission(missionId: number): Promise; + function terminateMission(missionId: int): Promise; /** * Get pids of processes which belong to specific bundle name and support process cache feature. * * @permission ohos.permission.GET_RUNNING_INFO * @param { string } bundleName - bundle name. - * @returns { Promise> } Returns the list of pid. + * @returns { Promise> } Returns the list of pid. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -1232,14 +1232,14 @@ declare namespace appManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function getSupportedProcessCachePids(bundleName : string): Promise>; + function getSupportedProcessCachePids(bundleName : string): Promise>; /** * Set keep alive for the specified bundle. * * @permission ohos.permission.MANAGE_APP_KEEP_ALIVE * @param { string } bundleName - bundle name. - * @param { number } userId - user id. + * @param { int } userId - user id. * @param { boolean } enable - flag indicates whether the bundle should be kept alive. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. @@ -1257,14 +1257,14 @@ declare namespace appManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function setKeepAliveForBundle(bundleName: string, userId: number, enable: boolean): Promise; + function setKeepAliveForBundle(bundleName: string, userId: int, enable: boolean): Promise; /** * Get keep-alive bundle information. * * @permission ohos.permission.MANAGE_APP_KEEP_ALIVE * @param { KeepAliveAppType } type - type of keep-alive apps to be quried. - * @param { number } [userId] - user id. + * @param { int } [userId] - user id. * @returns { Promise> } Returns the list of KeepAliveBundleInfo. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. @@ -1277,7 +1277,7 @@ declare namespace appManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function getKeepAliveBundles(type: KeepAliveAppType, userId?: number): Promise>; + function getKeepAliveBundles(type: KeepAliveAppType, userId?: int): Promise>; /** * Set keep alive for the specified app service extension. @@ -1319,7 +1319,7 @@ declare namespace appManager { * Kill processes in batch. * * @permission ohos.permission.KILL_APP_PROCESSES - * @param { Array } pids - The pids of the processes. + * @param { Array } pids - The pids of the processes. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not system application. @@ -1332,7 +1332,7 @@ declare namespace appManager { * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - function killProcessesInBatch(pids: Array): Promise; + function killProcessesInBatch(pids: Array): Promise; /** * The ability or extension state data. diff --git a/api/@ohos.app.ability.childProcessManager.d.ts b/api/@ohos.app.ability.childProcessManager.d.ts index 683fe96719..d09a5e09aa 100644 --- a/api/@ohos.app.ability.childProcessManager.d.ts +++ b/api/@ohos.app.ability.childProcessManager.d.ts @@ -66,7 +66,7 @@ declare namespace childProcessManager { * * @param { string } srcEntry - Child process source file entrance to be started. * @param { StartMode } startMode - Child process start mode. - * @returns { Promise } Returns the started child process pid. + * @returns { Promise } Returns the started child process pid. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed. * @throws { BusinessError } 16000050 - Internal error. @@ -76,14 +76,14 @@ declare namespace childProcessManager { * @stagemodelonly * @since 11 */ - function startChildProcess(srcEntry: string, startMode: StartMode): Promise; + function startChildProcess(srcEntry: string, startMode: StartMode): Promise; /** * Start child process with the given src entry and mode. * * @param { string } srcEntry - Child process source file entrance to be started. * @param { StartMode } startMode - Child process start mode. - * @param { AsyncCallback } callback - The callback of startChildProcess. + * @param { AsyncCallback } callback - The callback of startChildProcess. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed. * @throws { BusinessError } 16000050 - Internal error. @@ -93,7 +93,7 @@ declare namespace childProcessManager { * @stagemodelonly * @since 11 */ - function startChildProcess(srcEntry: string, startMode: StartMode, callback: AsyncCallback): void; + function startChildProcess(srcEntry: string, startMode: StartMode, callback: AsyncCallback): void; /** * Start child process with the given args and options. @@ -117,7 +117,7 @@ declare namespace childProcessManager { * @param { string } srcEntry - Indicates child process source file entrance to be started. * @param { ChildProcessArgs } args - Indicates args to pass to child process. * @param { ChildProcessOptions } [options] - Indicates options for starting child process. - * @returns { Promise } Returns the started child process pid. + * @returns { Promise } Returns the started child process pid. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. @@ -128,7 +128,7 @@ declare namespace childProcessManager { * @stagemodelonly * @since 13 */ - function startArkChildProcess(srcEntry: string, args: ChildProcessArgs, options?: ChildProcessOptions): Promise; + function startArkChildProcess(srcEntry: string, args: ChildProcessArgs, options?: ChildProcessOptions): Promise; /** * Start native child process with the given args and options. @@ -136,7 +136,7 @@ declare namespace childProcessManager { * @param { string } entryPoint - Indicates entry point of child process, consisting of library and entry function, such as "libEntry.so:Main". * @param { ChildProcessArgs } args - Indicates args to pass to child process. * @param { ChildProcessOptions } [options] - Indicates options for starting child process. - * @returns { Promise } Returns the started child process pid. + * @returns { Promise } Returns the started child process pid. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed. * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities. @@ -147,7 +147,7 @@ declare namespace childProcessManager { * @stagemodelonly * @since 13 */ - function startNativeChildProcess(entryPoint: string, args: ChildProcessArgs, options?: ChildProcessOptions): Promise; + function startNativeChildProcess(entryPoint: string, args: ChildProcessArgs, options?: ChildProcessOptions): Promise; } diff --git a/api/@ohos.app.ability.dialogRequest.d.ts b/api/@ohos.app.ability.dialogRequest.d.ts index 275dc2f417..6d0ae949fe 100644 --- a/api/@ohos.app.ability.dialogRequest.d.ts +++ b/api/@ohos.app.ability.dialogRequest.d.ts @@ -18,9 +18,7 @@ * @kit AbilityKit */ - /*** if arkts 1.1 */ import Want from './@ohos.app.ability.Want'; -/*** endif */ /** * Interface of request dialog. @@ -37,55 +35,61 @@ declare namespace dialogRequest { * @typedef WindowRect * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface WindowRect { /** * The left position of WindowRect * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - left: number; + left: int; /** * The top position of WindowRect * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - top: number; + top: int; /** * The width of WindowRect * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - width: number; + width: int; /** * The height of WindowRect * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ - height: number; + height: int; } /** * Request info of a request. * * @typedef RequestInfo * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface RequestInfo { /** @@ -94,7 +98,8 @@ declare namespace dialogRequest { * @type { ?WindowRect } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ windowRect?: WindowRect } @@ -104,14 +109,16 @@ declare namespace dialogRequest { * * @enum { number } * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export enum ResultCode { /** * The modal bullet box requests succeeded. * * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_OK = 0, @@ -119,7 +126,8 @@ declare namespace dialogRequest { * The modal bullet box requests Failed. * * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ RESULT_CANCEL = 1 } @@ -130,7 +138,8 @@ declare namespace dialogRequest { * @typedef RequestResult * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface RequestResult { /** @@ -139,7 +148,8 @@ declare namespace dialogRequest { * @type { ResultCode } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ result: ResultCode; @@ -149,7 +159,8 @@ declare namespace dialogRequest { * @type { ?Want } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly - * @since 10 + * @since arkts {'1.1':'10', '1.2':'20'} + * @arkts 1.1&1.2 */ want?: Want; } @@ -159,7 +170,8 @@ declare namespace dialogRequest { * * @interface RequestCallback * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ export interface RequestCallback { /** @@ -170,7 +182,8 @@ declare namespace dialogRequest { * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @StageModelOnly - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ setRequestResult(result: RequestResult): void; } @@ -183,7 +196,8 @@ declare namespace dialogRequest { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRequestInfo(want: Want): RequestInfo; @@ -195,7 +209,8 @@ declare namespace dialogRequest { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since 9 + * @since arkts {'1.1':'9', '1.2':'20'} + * @arkts 1.1&1.2 */ function getRequestCallback(want: Want): RequestCallback; } diff --git a/api/@ohos.app.ability.dialogSession.d.ts b/api/@ohos.app.ability.dialogSession.d.ts index c4836a1a28..e51f9fd394 100644 --- a/api/@ohos.app.ability.dialogSession.d.ts +++ b/api/@ohos.app.ability.dialogSession.d.ts @@ -80,46 +80,46 @@ declare namespace dialogSession { /** * The icon id of ability * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @stagemodelonly * @since 11 */ - abilityIconId: number; + abilityIconId: int; /** * The label id of ability * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @stagemodelonly * @since 11 */ - abilityLabelId: number; + abilityLabelId: int; /** * The icon id of bundle * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @stagemodelonly * @since 11 */ - bundleIconId: number; + bundleIconId: int; /** * The label id of bundle * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @stagemodelonly * @since 11 */ - bundleLabelId: number; + bundleLabelId: int; /** * The ability is visible @@ -135,13 +135,13 @@ declare namespace dialogSession { /** * Index of an application clone. It takes effect only for cloned applications. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @stagemodelonly * @since 12 */ - appIndex: number; + appIndex: int; /** * The mode of the multi-application. diff --git a/api/@ohos.app.ability.insightIntent.d.ts b/api/@ohos.app.ability.insightIntent.d.ts index c8f75ce1d1..0937b49906 100644 --- a/api/@ohos.app.ability.insightIntent.d.ts +++ b/api/@ohos.app.ability.insightIntent.d.ts @@ -101,14 +101,14 @@ declare namespace insightIntent { /** * Indicates result code. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @StageModelOnly * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - code: number; + code: int; /** * Indicates execute result. @@ -141,14 +141,14 @@ declare namespace insightIntent { * {@link wantConstant#Flags#FLAG_AUTH_READ_URI_PERMISSION}| * {@link wantConstant#Flags#FLAG_AUTH_WRITE_URI_PERMISSION}. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - flags?: number; + flags?: int; } /** diff --git a/api/@ohos.app.ability.insightIntentDriver.d.ts b/api/@ohos.app.ability.insightIntentDriver.d.ts index 239235e183..7aac48bfcb 100644 --- a/api/@ohos.app.ability.insightIntentDriver.d.ts +++ b/api/@ohos.app.ability.insightIntentDriver.d.ts @@ -120,14 +120,14 @@ declare namespace insightIntentDriver { /** * Indicates the display Id, only works when executeMode is UIAbility foreground. * - * @type { ?number } + * @type { ?long } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @StageModelOnly * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - displayId?: number; + displayId?: long; /** * Indicates the URIs will be authorized to the insight intent executor. @@ -148,14 +148,14 @@ declare namespace insightIntentDriver { * {@link wantConstant#Flags#FLAG_AUTH_READ_URI_PERMISSION}| * {@link wantConstant#Flags#FLAG_AUTH_WRITE_URI_PERMISSION}. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @stagemodelonly * @since arkts {'1.1':'18', '1.2':'20'} * @arkts 1.1&1.2 */ - flags?: number; + flags?: int; } /** diff --git a/api/@ohos.app.ability.quickFixManager.d.ts b/api/@ohos.app.ability.quickFixManager.d.ts index 99f73be5ae..77da4a0905 100644 --- a/api/@ohos.app.ability.quickFixManager.d.ts +++ b/api/@ohos.app.ability.quickFixManager.d.ts @@ -95,13 +95,13 @@ declare namespace quickFixManager { /** * The version number of the bundle. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix * @systemapi * @since 9 */ - readonly bundleVersionCode: number; + readonly bundleVersionCode: long; /** * The version name of the bundle. @@ -117,13 +117,13 @@ declare namespace quickFixManager { /** * The version number of the quick fix. * - * @type { number } + * @type { long } * @readonly * @syscap SystemCapability.Ability.AbilityRuntime.QuickFix * @systemapi * @since 9 */ - readonly quickFixVersionCode: number; + readonly quickFixVersionCode: long; /** * The version name of the quick fix. diff --git a/api/@ohos.app.ability.wantAgent.d.ts b/api/@ohos.app.ability.wantAgent.d.ts index f61ab3080b..4d624aae51 100644 --- a/api/@ohos.app.ability.wantAgent.d.ts +++ b/api/@ohos.app.ability.wantAgent.d.ts @@ -127,7 +127,7 @@ declare namespace wantAgent { * This API uses an asynchronous callback to return the result. * * @param { WantAgent } agent - Target WantAgent object. - * @param { AsyncCallback } callback - Callback used to return the user ID. + * @param { AsyncCallback } callback - Callback used to return the user ID. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 16000007 - Service busy. There are concurrent tasks. Try again later. @@ -136,7 +136,7 @@ declare namespace wantAgent { * @atomicservice * @since 12 */ - function getUid(agent: WantAgent, callback: AsyncCallback): void; + function getUid(agent: WantAgent, callback: AsyncCallback): void; /** * Obtains the UID of a WantAgent. @@ -155,7 +155,7 @@ declare namespace wantAgent { * This API uses a promise to return the result. * * @param { WantAgent } agent - Target WantAgent object. - * @returns { Promise } Promise used to return the user ID. + * @returns { Promise } Promise used to return the user ID. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 16000007 - Service busy. There are concurrent tasks. Try again later. @@ -164,7 +164,7 @@ declare namespace wantAgent { * @atomicservice * @since 12 */ - function getUid(agent: WantAgent): Promise; + function getUid(agent: WantAgent): Promise; /** * Obtains the Want in a WantAgent object. @@ -453,7 +453,7 @@ declare namespace wantAgent { * This API uses an asynchronous callback to return the result. * * @param { WantAgent } agent - Target WantAgent object. - * @param { AsyncCallback } callback - Callback used to return the operation type. + * @param { AsyncCallback } callback - Callback used to return the operation type. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 16000007 - Service busy. There are concurrent tasks. Try again later. @@ -464,7 +464,7 @@ declare namespace wantAgent { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function getOperationType(agent: WantAgent, callback: AsyncCallback): void; + function getOperationType(agent: WantAgent, callback: AsyncCallback): void; /** * Obtains the {@link OperationType} of a WantAgent. @@ -484,7 +484,7 @@ declare namespace wantAgent { * This API uses a promise to return the result. * * @param { WantAgent } agent - Indicates the WantAgent. - * @returns { Promise } Returns the OperationType of the WantAgent. + * @returns { Promise } Returns the OperationType of the WantAgent. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types. * @throws { BusinessError } 16000007 - Service busy. There are concurrent tasks. Try again later. @@ -495,7 +495,7 @@ declare namespace wantAgent { * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - function getOperationType(agent: WantAgent): Promise; + function getOperationType(agent: WantAgent): Promise; /** * Enables or disables the WantAgent multithreading feature. @@ -920,12 +920,12 @@ declare namespace wantAgent { /** * Request code that triggers the WantAgent object. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice * @since 12 */ - finalCode: number; + finalCode: int; /** * Final data collected by the common event. diff --git a/api/@ohos.app.appstartup.StartupConfig.d.ts b/api/@ohos.app.appstartup.StartupConfig.d.ts index 8e5917b48b..41bef11f66 100644 --- a/api/@ohos.app.appstartup.StartupConfig.d.ts +++ b/api/@ohos.app.appstartup.StartupConfig.d.ts @@ -32,13 +32,13 @@ export default interface StartupConfig { /** * Indicates timeout for executing all startup tasks. Default value is 10000 milliseconds. * - * @type { ?number } + * @type { ?int } * @default 10000 * @syscap SystemCapability.Ability.AppStartup * @stagemodelonly * @since 12 */ - timeoutMs?: number; + timeoutMs?: int; /** * Indicates a listener for startup, which will be called when all tasks complete. diff --git a/api/@ohos.application.uriPermissionManager.d.ts b/api/@ohos.application.uriPermissionManager.d.ts index c4114ab741..a69039892a 100644 --- a/api/@ohos.application.uriPermissionManager.d.ts +++ b/api/@ohos.application.uriPermissionManager.d.ts @@ -169,7 +169,7 @@ declare namespace uriPermissionManager { * wantConstant.Flags.FLAG_AUTH_WRITE_URI_PERMISSION or * wantConstant.Flags.FLAG_AUTH_PERSISTABLE_URI_PERMISSION. * @param { string } targetBundleName - Indicates the bundle name of authorization target. - * @param { number } appCloneIndex - Indicates the clone index of target application. + * @param { int } appCloneIndex - Indicates the clone index of target application. * @returns { Promise } - the promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not System App. Interface caller is not a system app. @@ -187,7 +187,7 @@ declare namespace uriPermissionManager { * @since arkts {'1.1':'19', '1.2':'20'} * @arkts 1.1&1.2 */ - function grantUriPermission(uri: string, flag: wantConstant.Flags, targetBundleName: string, appCloneIndex: number): Promise; + function grantUriPermission(uri: string, flag: wantConstant.Flags, targetBundleName: string, appCloneIndex: int): Promise; /** * Revoke URI from one application @@ -320,7 +320,7 @@ declare namespace uriPermissionManager { * * @param { string } uri - File URI. * @param { string } targetBundleName - Indicates the bundle name of authorization target. - * @param { number } appCloneIndex - Indicates the clone index of target application. + * @param { int } appCloneIndex - Indicates the clone index of target application. * @returns { Promise } - the promise returned by the function. * @throws { BusinessError } 202 - Not System App. Interface caller is not a system app. * @throws { BusinessError } 401 - Parameter error. Possible causes: @@ -335,7 +335,7 @@ declare namespace uriPermissionManager { * @since arkts {'1.1':'19', '1.2':'20'} * @arkts 1.1&1.2 */ - function revokeUriPermission(uri: string, targetBundleName: string, appCloneIndex: number): Promise; + function revokeUriPermission(uri: string, targetBundleName: string, appCloneIndex: int): Promise; /** * Grant URIs in UDkey to another application @@ -343,7 +343,7 @@ declare namespace uriPermissionManager { * @param { wantConstant.Flags } flag - wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION, * wantConstant.Flags.FLAG_AUTH_WRITE_URI_PERMISSION or * wantConstant.Flags.FLAG_AUTH_PERSISTABLE_URI_PERMISSION. - * @param { number } targetTokenId - Indicates the token id of target application. + * @param { int } targetTokenId - Indicates the token id of target application. * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 202 - Not System App. Interface caller is not a system app. * @throws { BusinessError } 801 - Capability not supported. @@ -357,7 +357,7 @@ declare namespace uriPermissionManager { * @systemapi Hide this for inner system use. * @since 20 */ - function grantUriPermissionByKey(key: string, flag: wantConstant.Flags, targetTokenId: number): Promise; + function grantUriPermissionByKey(key: string, flag: wantConstant.Flags, targetTokenId: int): Promise; /** * Grant URIs in UDkey to another application @@ -366,8 +366,8 @@ declare namespace uriPermissionManager { * @param { wantConstant.Flags } flag - wantConstant.Flags.FLAG_AUTH_READ_URI_PERMISSION, * wantConstant.Flags.FLAG_AUTH_WRITE_URI_PERMISSION or * wantConstant.Flags.FLAG_AUTH_PERSISTABLE_URI_PERMISSION. - * @param { number } callerTokenId - Indicates the token id of caller application. - * @param { number } targetTokenId - Indicates the token id of target application. + * @param { int } callerTokenId - Indicates the token id of caller application. + * @param { int } targetTokenId - Indicates the token id of target application. * @returns { Promise } - The promise returned by the function. * @throws { BusinessError } 201 - Permission denied. * @throws { BusinessError } 202 - Not System App. Interface caller is not a system app. @@ -383,7 +383,7 @@ declare namespace uriPermissionManager { * @systemapi Hide this for inner system use. * @since 20 */ - function grantUriPermissionByKeyAsCaller(key: string, flag: wantConstant.Flags, callerTokenId: number, targetTokenId: number): Promise; + function grantUriPermissionByKeyAsCaller(key: string, flag: wantConstant.Flags, callerTokenId: int, targetTokenId: int): Promise; } export default uriPermissionManager; \ No newline at end of file diff --git a/api/ability/abilityResult.d.ts b/api/ability/abilityResult.d.ts index 636c91f97b..b8036da5a3 100644 --- a/api/ability/abilityResult.d.ts +++ b/api/ability/abilityResult.d.ts @@ -45,13 +45,13 @@ export interface AbilityResult { * Indicates the result code returned after the ability is destroyed. You can define the result * code to identify an error. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityBase * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - resultCode: number; + resultCode: int; /** * Indicates the data returned after the ability is destroyed. You can define the data returned. diff --git a/api/app/processInfo.d.ts b/api/app/processInfo.d.ts index 8c09ec0698..ad16729547 100644 --- a/api/app/processInfo.d.ts +++ b/api/app/processInfo.d.ts @@ -27,11 +27,11 @@ export interface ProcessInfo { /** * The id of the current process * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 7 */ - pid: number; + pid: int; /** * The name of the current process diff --git a/api/application/AbilityDelegator.d.ts b/api/application/AbilityDelegator.d.ts index d7a91d0bf7..ab449c33ae 100644 --- a/api/application/AbilityDelegator.d.ts +++ b/api/application/AbilityDelegator.d.ts @@ -500,7 +500,7 @@ export interface AbilityDelegator { * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor. * * @param { AbilityMonitor } monitor - AbilityMonitor object. - * @param { number } timeout - Maximum wait time, in milliseconds. + * @param { long } timeout - Maximum wait time, in milliseconds. * @param { AsyncCallback } callback - The callback is used to return the Ability object. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000100 - Calling WaitAbilityMonitor failed. @@ -510,7 +510,7 @@ export interface AbilityDelegator { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - waitAbilityMonitor(monitor: AbilityMonitor, timeout: number, callback: AsyncCallback): void; + waitAbilityMonitor(monitor: AbilityMonitor, timeout: long, callback: AsyncCallback): void; /** * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor. @@ -539,7 +539,7 @@ export interface AbilityDelegator { * Wait for and returns the Ability object that matches the conditions set in the given AbilityMonitor. * * @param { AbilityMonitor } monitor - AbilityMonitor object. - * @param { number } [timeout] - Maximum wait time, in milliseconds. + * @param { long } [timeout] - Maximum wait time, in milliseconds. * @returns { Promise } Returns the Ability object. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000100 - Calling WaitAbilityMonitor failed. @@ -549,7 +549,7 @@ export interface AbilityDelegator { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - waitAbilityMonitor(monitor: AbilityMonitor, timeout?: number): Promise; + waitAbilityMonitor(monitor: AbilityMonitor, timeout?: long): Promise; /** * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor. @@ -614,7 +614,7 @@ export interface AbilityDelegator { * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor. * * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object. - * @param { number } timeout - Maximum wait time, in milliseconds. + * @param { long } timeout - Maximum wait time, in milliseconds. * @param { AsyncCallback } callback - The callback is used to return the AbilityStage object. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000100 - Calling WaitAbilityStageMonitor failed. @@ -624,7 +624,7 @@ export interface AbilityDelegator { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout: number, callback: AsyncCallback): void; + waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout: long, callback: AsyncCallback): void; /** * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor. @@ -653,7 +653,7 @@ export interface AbilityDelegator { * Wait for and returns the AbilityStage object that matches the conditions set in the given AbilityStageMonitor. * * @param { AbilityStageMonitor } monitor - AbilityStageMonitor object. - * @param { number } [timeout] - Maximum wait time, in milliseconds. + * @param { long } [timeout] - Maximum wait time, in milliseconds. * @returns { Promise } Returns the AbilityStage object. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000100 - Calling WaitAbilityStageMonitor failed. @@ -663,7 +663,7 @@ export interface AbilityDelegator { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout?: number): Promise; + waitAbilityStageMonitor(monitor: AbilityStageMonitor, timeout?: long): Promise; /** * Obtain the application context. @@ -715,7 +715,7 @@ export interface AbilityDelegator { * Obtain the lifecycle state of a specified ability. * * @param { UIAbility } ability - The Ability object. - * @returns { number } Returns the state of the Ability object. + * @returns { int } Returns the state of the Ability object. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @crossplatform @@ -723,7 +723,7 @@ export interface AbilityDelegator { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - getAbilityState(ability: UIAbility): number; + getAbilityState(ability: UIAbility): int; /** * Obtain the ability that is currently being displayed in this process. @@ -1216,14 +1216,14 @@ export interface AbilityDelegator { * Execute the given command in the aa tools side. * * @param { string } cmd - Shell command - * @param { number } timeoutSecs - Timeout, in seconds + * @param { long } timeoutSecs - Timeout, in seconds * @param { AsyncCallback } callback - The callback of executeShellCommand. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - executeShellCommand(cmd: string, timeoutSecs: number, callback: AsyncCallback): void; + executeShellCommand(cmd: string, timeoutSecs: long, callback: AsyncCallback): void; /** * Execute the given command in the aa tools side. @@ -1238,14 +1238,14 @@ export interface AbilityDelegator { * Execute the given command in the aa tools side. * * @param { string } cmd - Shell command - * @param { number } [timeoutSecs] - Timeout, in seconds + * @param { long } [timeoutSecs] - Timeout, in seconds * @returns { Promise } the promise returned by the function. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - executeShellCommand(cmd: string, timeoutSecs?: number): Promise; + executeShellCommand(cmd: string, timeoutSecs?: long): Promise; /** * Finish the test and print log information to the unit testing console. @@ -1277,7 +1277,7 @@ export interface AbilityDelegator { * The total length of the log information to be printed cannot exceed 1000 characters. * * @param { string } msg - Log information. - * @param { number } code - Result code. + * @param { long } code - Result code. * @param { AsyncCallback } callback - The callback of finishTest. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000100 - Calling FinishTest failed. @@ -1287,7 +1287,7 @@ export interface AbilityDelegator { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - finishTest(msg: string, code: number, callback: AsyncCallback): void; + finishTest(msg: string, code: long, callback: AsyncCallback): void; /** * Finish the test and print log information to the unit testing console. @@ -1319,7 +1319,7 @@ export interface AbilityDelegator { * The total length of the log information to be printed cannot exceed 1000 characters. * * @param { string } msg - Log information. - * @param { number } code - Result code. + * @param { long } code - Result code. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000100 - Calling FinishTest failed. @@ -1329,7 +1329,7 @@ export interface AbilityDelegator { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - finishTest(msg: string, code: number): Promise; + finishTest(msg: string, code: long): Promise; /** * Used to set a list of mock data. diff --git a/api/application/AbilityFirstFrameStateData.d.ts b/api/application/AbilityFirstFrameStateData.d.ts index 6403ed97c0..39f4a8b803 100644 --- a/api/application/AbilityFirstFrameStateData.d.ts +++ b/api/application/AbilityFirstFrameStateData.d.ts @@ -60,13 +60,13 @@ export interface AbilityFirstFrameStateData { /** * The index of DLP sandbox. * - * @type { number } + * @type { int } * @default 0 * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since 12 */ - appIndex: number; + appIndex: int; /** * The entry ability of application is cold-start return true, others false. diff --git a/api/application/AbilityRunningInfo.d.ts b/api/application/AbilityRunningInfo.d.ts index 26f2e16562..a51812ad45 100644 --- a/api/application/AbilityRunningInfo.d.ts +++ b/api/application/AbilityRunningInfo.d.ts @@ -52,24 +52,24 @@ export interface AbilityRunningInfo { /** * Process ID. * - * @type { number } + * @type { int } * @default process id * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - pid: number; + pid: int; /** * User ID. * - * @type { number } + * @type { int } * @default user id * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - uid: number; + uid: int; /** * Process name. @@ -85,13 +85,13 @@ export interface AbilityRunningInfo { /** * Ability startup time. * - * @type { number } + * @type { long } * @default ability start time * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - startTime: number; + startTime: long; /** * Ability status. diff --git a/api/application/AbilityStateData.d.ts b/api/application/AbilityStateData.d.ts index fad8201ea1..548469c52c 100644 --- a/api/application/AbilityStateData.d.ts +++ b/api/application/AbilityStateData.d.ts @@ -59,42 +59,42 @@ export default class AbilityStateData { /** * The pid. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - pid: number; + pid: int; /** * The uid. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - uid: number; + uid: int; /** * The application state. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - state: number; + state: int; /** * The ability type, page or service and so on. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - abilityType: number; + abilityType: int; /** * Indicates whether the application is atomic service. @@ -108,10 +108,10 @@ export default class AbilityStateData { /** * The app clone index of ability instance. - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - appCloneIndex?: number; + appCloneIndex?: int; } diff --git a/api/application/AutoFillPopupConfig.d.ts b/api/application/AutoFillPopupConfig.d.ts index 7c434db2be..d892e129e7 100644 --- a/api/application/AutoFillPopupConfig.d.ts +++ b/api/application/AutoFillPopupConfig.d.ts @@ -64,24 +64,24 @@ /** * The width of the popup. * - * @type { number } + * @type { double } * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @systemapi * @stagemodelonly * @since 12 */ - width: number; + width: double; /** * The height of the popup. * - * @type { number } + * @type { double } * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @systemapi * @stagemodelonly * @since 12 */ - height: number; + height: double; } /** diff --git a/api/application/AutoFillRect.d.ts b/api/application/AutoFillRect.d.ts index 9918835ac0..7a5283bb09 100644 --- a/api/application/AutoFillRect.d.ts +++ b/api/application/AutoFillRect.d.ts @@ -31,44 +31,44 @@ export default interface AutoFillRect { /** * The left of the rect. * - * @type { number } + * @type { double } * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @systemapi * @stagemodelonly * @since 12 */ - left: number; + left: double; /** * The top of the rect. * - * @type { number } + * @type { double } * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @systemapi * @stagemodelonly * @since 12 */ - top: number; + top: double; /** * The width of the rect. * - * @type { number } + * @type { double } * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @systemapi * @stagemodelonly * @since 12 */ - width: number; + width: double; /** * The height of the rect. * - * @type { number } + * @type { double } * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @systemapi * @stagemodelonly * @since 12 */ - height: number; + height: double; } \ No newline at end of file diff --git a/api/application/AutoStartupInfo.d.ts b/api/application/AutoStartupInfo.d.ts index 78da282416..70bfb5433d 100644 --- a/api/application/AutoStartupInfo.d.ts +++ b/api/application/AutoStartupInfo.d.ts @@ -74,18 +74,18 @@ export interface AutoStartupInfo { /** * The app clone index of ability instance. - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @stagemodelonly * @since 12 */ - appCloneIndex?: number; + appCloneIndex?: int; /** * The user id of application. * - * @type { ?number } + * @type { ?int } * @readonly * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi @@ -93,12 +93,12 @@ export interface AutoStartupInfo { * @since 20 * @arkts 1.1&1.2 */ - readonly userId?: number; + readonly userId?: int; /** * The user id of setter. * - * @type { ?number } + * @type { ?int } * @readonly * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi @@ -106,7 +106,7 @@ export interface AutoStartupInfo { * @since 20 * @arkts 1.1&1.2 */ - readonly setterUserId?: number; + readonly setterUserId?: int; /** * Whether to allow user to modify autostartup status. diff --git a/api/application/BusinessAbilityInfo.d.ts b/api/application/BusinessAbilityInfo.d.ts index ac287a950d..0c0f1e4cab 100755 --- a/api/application/BusinessAbilityInfo.d.ts +++ b/api/application/BusinessAbilityInfo.d.ts @@ -66,35 +66,35 @@ export interface BusinessAbilityInfo { /** * Indicates the label id of the business ability info * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since 10 */ - readonly labelId: number; + readonly labelId: int; /** * Indicates the description id of the business ability info * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since 10 */ - readonly descriptionId: number; + readonly descriptionId: int; /** * Indicates the icon id of the business ability info * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since 10 */ - readonly iconId: number; + readonly iconId: int; /** * Enumerates types of the business ability info diff --git a/api/application/Context.d.ts b/api/application/Context.d.ts index fa74df5c95..39034010ce 100644 --- a/api/application/Context.d.ts +++ b/api/application/Context.d.ts @@ -672,7 +672,7 @@ declare class Context extends BaseContext { * Creates the context based on the specified display ID, so as to obtain and use other application contexts with * screen information (including ScreenDensity and Direction). * - * @param { number } displayId - Display ID. + * @param { long } displayId - Display ID. * @returns { Context } Context with the specified screen information. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. @@ -682,7 +682,7 @@ declare class Context extends BaseContext { * @since arkts {'1.1':'15', '1.2':'20'} * @arkts 1.1&1.2 */ - createDisplayContext(displayId: number): Context; + createDisplayContext(displayId: long): Context; } export default Context; \ No newline at end of file diff --git a/api/application/ExtensionRunningInfo.d.ts b/api/application/ExtensionRunningInfo.d.ts index 7b6bdaaf40..f0176db81e 100644 --- a/api/application/ExtensionRunningInfo.d.ts +++ b/api/application/ExtensionRunningInfo.d.ts @@ -42,24 +42,24 @@ export interface ExtensionRunningInfo { extension: ElementName; /** - * @type { number } + * @type { int } * @default process id * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - pid: number; + pid: int; /** - * @type { number } + * @type { int } * @default user id * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - uid: number; + uid: int; /** * @type { string } @@ -72,14 +72,14 @@ export interface ExtensionRunningInfo { processName: string; /** - * @type { number } + * @type { long } * @default ability start time * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - startTime: number; + startTime: long; /** * @type { Array } diff --git a/api/application/KioskStatus.d.ts b/api/application/KioskStatus.d.ts index 6d223313e1..e3fd3e4770 100644 --- a/api/application/KioskStatus.d.ts +++ b/api/application/KioskStatus.d.ts @@ -53,11 +53,11 @@ export interface KioskStatus { /** * The budle uid of kiosk app. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since 20 * @arkts 1.1&1.2 */ - kioskBundleUid: number; + kioskBundleUid: int; } diff --git a/api/application/MissionInfo.d.ts b/api/application/MissionInfo.d.ts index 7f7681f119..2bec109dbb 100644 --- a/api/application/MissionInfo.d.ts +++ b/api/application/MissionInfo.d.ts @@ -32,22 +32,22 @@ export interface MissionInfo { /** * Indicates mission id. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Mission * @systemapi * @since 8 */ - missionId: number; + missionId: int; /** * Indicates running state. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Mission * @systemapi * @since 8 */ - runningState: number; + runningState: int; /** * Indicates locked state. @@ -112,12 +112,12 @@ export interface MissionInfo { /** * Indicates the ability state of this mission. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Mission * @systemapi * @since 10 */ - abilityState: number; + abilityState: int; /** * Indicates whether the mission is unclearable. diff --git a/api/application/MissionListener.d.ts b/api/application/MissionListener.d.ts index bfa9de00d6..b141fbaa10 100644 --- a/api/application/MissionListener.d.ts +++ b/api/application/MissionListener.d.ts @@ -32,71 +32,71 @@ export interface MissionListener { /** * Called by system when mission created. * - * @param { number } mission - Indicates the id of created mission. + * @param { int } mission - Indicates the id of created mission. * @syscap SystemCapability.Ability.AbilityRuntime.Mission * @systemapi * @since 8 */ - onMissionCreated(mission: number): void; + onMissionCreated(mission: int): void; /** * Called by system when mission destroyed. * - * @param { number } mission - Indicates the id of destroyed mission. + * @param { int } mission - Indicates the id of destroyed mission. * @syscap SystemCapability.Ability.AbilityRuntime.Mission * @systemapi * @since 8 */ - onMissionDestroyed(mission: number): void; + onMissionDestroyed(mission: int): void; /** * Called by system when mission snapshot changed. * - * @param { number } mission - Indicates the id of the mission which the snapshot changes + * @param { int } mission - Indicates the id of the mission which the snapshot changes * @syscap SystemCapability.Ability.AbilityRuntime.Mission * @systemapi * @since 8 */ - onMissionSnapshotChanged(mission: number): void; + onMissionSnapshotChanged(mission: int): void; /** * Called by system when mission moved to front. * - * @param { number } mission - Indicates the id of the mission being moved to the foreground. + * @param { int } mission - Indicates the id of the mission being moved to the foreground. * @syscap SystemCapability.Ability.AbilityRuntime.Mission * @systemapi * @since 8 */ - onMissionMovedToFront(mission: number): void; + onMissionMovedToFront(mission: int): void; /** * Called by system when mission label has changed. * - * @param { number } mission - Indicates the id of the mission whose label has changed. + * @param { int } mission - Indicates the id of the mission whose label has changed. * @syscap SystemCapability.Ability.AbilityRuntime.Mission * @systemapi * @since 9 */ - onMissionLabelUpdated(mission: number): void; + onMissionLabelUpdated(mission: int): void; /** * Called by system when mission icon has changed. * - * @param { number } mission - Indicates the id of the mission whose icon has changed. + * @param { int } mission - Indicates the id of the mission whose icon has changed. * @param { image.PixelMap } icon - Indicates the icon of the mission whose icon has changed. * @syscap SystemCapability.Ability.AbilityRuntime.Mission * @systemapi * @since 9 */ - onMissionIconUpdated(mission: number, icon: image.PixelMap): void; + onMissionIconUpdated(mission: int, icon: image.PixelMap): void; /** * Called by system when target mission is closed. * - * @param { number } mission - Indicates the id of the mission whose ability instance is destroyed. + * @param { int } mission - Indicates the id of the mission whose ability instance is destroyed. * @syscap SystemCapability.Ability.AbilityRuntime.Mission * @systemapi * @since 9 */ - onMissionClosed(mission: number): void; + onMissionClosed(mission: int): void; } diff --git a/api/application/PageNodeInfo.d.ts b/api/application/PageNodeInfo.d.ts index 5e9749e918..78a75b0671 100644 --- a/api/application/PageNodeInfo.d.ts +++ b/api/application/PageNodeInfo.d.ts @@ -34,24 +34,24 @@ export default interface PageNodeInfo { /** * The id of page node. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @systemapi * @stagemodelonly * @since 11 */ - id: number; + id: int; /** * The depth of page node. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore * @systemapi * @stagemodelonly * @since 11 */ - depth: number; + depth: int; /** * The auto fill type of page node. diff --git a/api/application/ProcessData.d.ts b/api/application/ProcessData.d.ts index e80fbfb0a0..ec8e94d7e4 100644 --- a/api/application/ProcessData.d.ts +++ b/api/application/ProcessData.d.ts @@ -39,32 +39,32 @@ export default class ProcessData { /** * The pid. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - pid: number; + pid: int; /** * The uid. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - uid: number; + uid: int; /** * The process state. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - state: number; + state: int; /** * Whether the process is continuous task. diff --git a/api/application/ProcessInformation.d.ts b/api/application/ProcessInformation.d.ts index 8f64c790d6..77d2f9b1cf 100644 --- a/api/application/ProcessInformation.d.ts +++ b/api/application/ProcessInformation.d.ts @@ -67,7 +67,7 @@ export interface ProcessInformation { * @since 10 */ /** - * @type { number } + * @type { int } * @default process id * @syscap SystemCapability.Ability.AbilityRuntime.Core * @crossplatform @@ -75,7 +75,7 @@ export interface ProcessInformation { * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - pid: number; + pid: int; /** * @type { number } @@ -84,14 +84,14 @@ export interface ProcessInformation { * @since 9 */ /** - * @type { number } + * @type { int } * @default user id * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - uid: number; + uid: int; /** * @type { string } @@ -174,11 +174,11 @@ export interface ProcessInformation { /** * The app clone index of current process if app is multi app mode. - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - appCloneIndex?: number; + appCloneIndex?: int; } diff --git a/api/application/RunningAppClone.d.ts b/api/application/RunningAppClone.d.ts index 261cb1d15a..02f2c8dc4e 100644 --- a/api/application/RunningAppClone.d.ts +++ b/api/application/RunningAppClone.d.ts @@ -31,33 +31,33 @@ export interface RunningAppClone { /** * The app clone index of current single app. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - appCloneIndex: number; + appCloneIndex: int; /** * The uid of current single app. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - uid: number; + uid: int; /** * All pids of current single app. * - * @type { Array } + * @type { Array } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since arkts {'1.1':'12', '1.2':'20'} * @arkts 1.1&1.2 */ - pids: Array; + pids: Array; } \ No newline at end of file diff --git a/api/application/RunningMultiInstanceInfo.d.ts b/api/application/RunningMultiInstanceInfo.d.ts index c64921df69..24b0df4c53 100644 --- a/api/application/RunningMultiInstanceInfo.d.ts +++ b/api/application/RunningMultiInstanceInfo.d.ts @@ -42,22 +42,22 @@ export interface RunningMultiInstanceInfo { /** * The uid of current app instance. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - uid: number; + uid: int; /** * All pids of current app instance. * - * @type { Array } + * @type { Array } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @since arkts {'1.1':'14', '1.2':'20'} * @arkts 1.1&1.2 */ - pids: Array; + pids: Array; } \ No newline at end of file diff --git a/api/application/ServiceExtensionContext.d.ts b/api/application/ServiceExtensionContext.d.ts index d133113da9..ab652998b9 100644 --- a/api/application/ServiceExtensionContext.d.ts +++ b/api/application/ServiceExtensionContext.d.ts @@ -915,7 +915,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the ability to start. - * @param { number } accountId - Indicates the accountId to start. + * @param { int } accountId - Indicates the accountId to start. * @param { AsyncCallback } callback - The callback of startAbilityWithAccount. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -950,7 +950,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 14 */ - startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void; + startAbilityWithAccount(want: Want, accountId: int, callback: AsyncCallback): void; /** * Service extension uses this method to start a specific ability with account. @@ -1064,7 +1064,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the ability to start. - * @param { number } accountId - Indicates the accountId to start. + * @param { int } accountId - Indicates the accountId to start. * @param { StartOptions } options - Indicates the start options. * @param { AsyncCallback } callback - The callback of startAbilityWithAccount. * @throws { BusinessError } 201 - The application does not have permission to call the interface. @@ -1098,7 +1098,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 14 */ - startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback): void; + startAbilityWithAccount(want: Want, accountId: int, options: StartOptions, callback: AsyncCallback): void; /** * Service extension uses this method to start a specific ability with account. If the caller application is in foreground, @@ -1186,7 +1186,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the ability to start. - * @param { number } accountId - Indicates the accountId to start. + * @param { int } accountId - Indicates the accountId to start. * @param { StartOptions } [options] - Indicates the start options. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - The application does not have permission to call the interface. @@ -1222,7 +1222,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 14 */ - startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise; + startAbilityWithAccount(want: Want, accountId: int, options?: StartOptions): Promise; /** * Starts a new service extension ability. @@ -1456,7 +1456,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @param { AsyncCallback } callback - The callback of startServiceExtensionAbilityWithAccount. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -1479,7 +1479,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 12 */ - startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void; + startServiceExtensionAbilityWithAccount(want: Want, accountId: int, callback: AsyncCallback): void; /** * Starts a new service extension ability with account. @@ -1545,7 +1545,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -1568,7 +1568,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 12 */ - startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise; + startServiceExtensionAbilityWithAccount(want: Want, accountId: int): Promise; /** * Stops a service within the same application. @@ -1698,7 +1698,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the accountId to start. + * @param { int } accountId - Indicates the accountId to start. * @param { AsyncCallback } callback - The callback of stopServiceExtensionAbilityWithAccount. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -1717,7 +1717,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 10 */ - stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void; + stopServiceExtensionAbilityWithAccount(want: Want, accountId: int, callback: AsyncCallback): void; /** * Stops a service within the same application with account. @@ -1751,7 +1751,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the accountId to start. + * @param { int } accountId - Indicates the accountId to start. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -1770,7 +1770,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 10 */ - stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise; + stopServiceExtensionAbilityWithAccount(want: Want, accountId: int): Promise; /** * Destroys this service extension. @@ -1869,7 +1869,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * * @param { Want } want - Indicates the service extension to connect. * @param { ConnectOptions } options - Indicates the callback of connection. - * @returns { number } Returns the connection id. + * @returns { long } Returns the connection id. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -1888,7 +1888,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 10 */ - connectServiceExtensionAbility(want: Want, options: ConnectOptions): number; + connectServiceExtensionAbility(want: Want, options: ConnectOptions): long; /** * Connects an ability to a Service extension with account. @@ -1926,9 +1926,9 @@ declare class ServiceExtensionContext extends ExtensionContext { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the service extension to connect. - * @param { number } accountId - Indicates the account to connect. + * @param { int } accountId - Indicates the account to connect. * @param { ConnectOptions } options - Indicates the callback of connection. - * @returns { number } Returns the connection id. + * @returns { long } Returns the connection id. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; @@ -1948,12 +1948,12 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 10 */ - connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number; + connectServiceExtensionAbilityWithAccount(want: Want, accountId: int, options: ConnectOptions): long; /** * Disconnect an ability from a service extension, in contrast to {@link connectAbility}. * - * @param { number } connection - the connection id returned from connectAbility api. + * @param { long } connection - the connection id returned from connectAbility api. * @param { AsyncCallback } callback - The callback of disconnectAbility. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -1964,12 +1964,12 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 9 */ - disconnectServiceExtensionAbility(connection: number, callback: AsyncCallback): void; + disconnectServiceExtensionAbility(connection: long, callback: AsyncCallback): void; /** * Disconnect an ability from a service extension, in contrast to {@link connectAbility}. * - * @param { number } connection - the connection id returned from connectAbility api. + * @param { long } connection - the connection id returned from connectAbility api. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -1980,7 +1980,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 9 */ - disconnectServiceExtensionAbility(connection: number): Promise; + disconnectServiceExtensionAbility(connection: long): Promise; /** * Get the caller object of the startup capability. @@ -2045,7 +2045,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * * @permission ohos.permission.ABILITY_BACKGROUND_COMMUNICATION and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the ability to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @returns { Promise } Returns the Caller interface. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -2067,7 +2067,7 @@ declare class ServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 10 */ - startAbilityByCallWithAccount(want: Want, accountId: number): Promise; + startAbilityByCallWithAccount(want: Want, accountId: int): Promise; /** * Service extension uses this method to start a specific ability, diff --git a/api/application/UIAbilityContext.d.ts b/api/application/UIAbilityContext.d.ts index 34fd6d5074..a1f9426d63 100644 --- a/api/application/UIAbilityContext.d.ts +++ b/api/application/UIAbilityContext.d.ts @@ -1370,7 +1370,7 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.ABILITY_BACKGROUND_COMMUNICATION and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the ability to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @returns { Promise } Returns the Caller interface. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -1399,7 +1399,7 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 14 */ - startAbilityByCallWithAccount(want: Want, accountId: number): Promise; + startAbilityByCallWithAccount(want: Want, accountId: int): Promise; /** * Starts a new ability with account. If the caller application is in foreground, @@ -1483,7 +1483,7 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @param { AsyncCallback } callback - The callback of startAbilityWithAccount. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -1517,7 +1517,7 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 14 */ - startAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void; + startAbilityWithAccount(want: Want, accountId: int, callback: AsyncCallback): void; /** * Starts a new ability with account. @@ -1628,7 +1628,7 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @param { StartOptions } options - Indicates the start options. * @param { AsyncCallback } callback - The callback of startAbilityWithAccount. * @throws { BusinessError } 201 - The application does not have permission to call the interface. @@ -1661,7 +1661,7 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 14 */ - startAbilityWithAccount(want: Want, accountId: number, options: StartOptions, callback: AsyncCallback): void; + startAbilityWithAccount(want: Want, accountId: int, options: StartOptions, callback: AsyncCallback): void; /** * Starts a new ability with account. If the caller application is in foreground, @@ -1747,7 +1747,7 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @param { StartOptions } [options] - Indicates the start options. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - The application does not have permission to call the interface. @@ -1782,7 +1782,7 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 14 */ - startAbilityWithAccount(want: Want, accountId: number, options?: StartOptions): Promise; + startAbilityWithAccount(want: Want, accountId: int, options?: StartOptions): Promise; /** * Starts an ability and returns the execution result when the ability is destroyed. @@ -2513,7 +2513,7 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @param { AsyncCallback } callback - The callback is used to return the result of startAbility. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -2547,7 +2547,7 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 14 */ - startAbilityForResultWithAccount(want: Want, accountId: number, callback: AsyncCallback): void; + startAbilityForResultWithAccount(want: Want, accountId: int, callback: AsyncCallback): void; /** * Starts an ability and returns the execution result when the ability is destroyed with account. @@ -2658,7 +2658,7 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @param { StartOptions } options - Indicates the start options. * @param { AsyncCallback } callback - The callback is used to return the result of startAbility. * @throws { BusinessError } 201 - The application does not have permission to call the interface. @@ -2693,7 +2693,7 @@ declare class UIAbilityContext extends Context { */ startAbilityForResultWithAccount( want: Want, - accountId: number, + accountId: int, options: StartOptions, callback: AsyncCallback ): void; @@ -2801,7 +2801,7 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @param { StartOptions } [options] - Indicates the start options. * @returns { Promise } Returns the result of startAbility. * @throws { BusinessError } 201 - The application does not have permission to call the interface. @@ -2836,7 +2836,7 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 14 */ - startAbilityForResultWithAccount(want: Want, accountId: number, options?: StartOptions): Promise; + startAbilityForResultWithAccount(want: Want, accountId: int, options?: StartOptions): Promise; /** * Starts a new service extension ability. @@ -3062,7 +3062,7 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @param { AsyncCallback } callback - The callback of startServiceExtensionAbilityWithAccount. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -3084,7 +3084,7 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 12 */ - startServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void; + startServiceExtensionAbilityWithAccount(want: Want, accountId: int, callback: AsyncCallback): void; /** * Starts a new service extension ability with account. @@ -3148,7 +3148,7 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -3170,7 +3170,7 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 12 */ - startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise; + startServiceExtensionAbilityWithAccount(want: Want, accountId: int): Promise; /** * Stops other service extension ability. @@ -3297,7 +3297,7 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the accountId to start. + * @param { int } accountId - Indicates the accountId to start. * @param { AsyncCallback } callback - The callback of stopServiceExtensionAbilityWithAccount. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -3315,7 +3315,7 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 10 */ - stopServiceExtensionAbilityWithAccount(want: Want, accountId: number, callback: AsyncCallback): void; + stopServiceExtensionAbilityWithAccount(want: Want, accountId: int, callback: AsyncCallback): void; /** * Stops other service extension ability with account. @@ -3348,7 +3348,7 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the accountId to start. + * @param { int } accountId - Indicates the accountId to start. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -3366,7 +3366,7 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 10 */ - stopServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise; + stopServiceExtensionAbilityWithAccount(want: Want, accountId: int): Promise; /** * Destroys this Page ability. @@ -3593,7 +3593,7 @@ declare class UIAbilityContext extends Context { * * @param { Want } want - The element name of the service ability * @param { ConnectOptions } options - The remote object instance - * @returns { number } Returns the number code of the ability connected + * @returns { long } Returns the number code of the ability connected * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000001 - The specified ability does not exist. @@ -3611,7 +3611,7 @@ declare class UIAbilityContext extends Context { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - connectServiceExtensionAbility(want: Want, options: ConnectOptions): number; + connectServiceExtensionAbility(want: Want, options: ConnectOptions): long; /** * Connects the current ability to an service extension ability with account. @@ -3642,9 +3642,9 @@ declare class UIAbilityContext extends Context { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - The element name of the service ability - * @param { number } accountId - The account to connect + * @param { int } accountId - The account to connect * @param { ConnectOptions } options - The remote object instance - * @returns { number } Returns the number code of the ability connected + * @returns { long } Returns the number code of the ability connected * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. @@ -3663,12 +3663,12 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 10 */ - connectServiceExtensionAbilityWithAccount(want: Want, accountId: number, options: ConnectOptions): number; + connectServiceExtensionAbilityWithAccount(want: Want, accountId: int, options: ConnectOptions): long; /** * Disconnect an ability from a service extension, in contrast to {@link connectAbility}. * - * @param { number } connection - The number code of the ability connected + * @param { long } connection - The number code of the ability connected * @param { AsyncCallback } callback - The callback of disconnectAbility. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000011 - The context does not exist. @@ -3677,12 +3677,12 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 9 */ - disconnectServiceExtensionAbility(connection: number, callback: AsyncCallback): void; + disconnectServiceExtensionAbility(connection: long, callback: AsyncCallback): void; /** * Disconnect an ability from a service extension, in contrast to {@link connectAbility}. * - * @param { number } connection - The number code of the ability connected + * @param { long } connection - The number code of the ability connected * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000011 - The context does not exist. @@ -3692,7 +3692,7 @@ declare class UIAbilityContext extends Context { * @since arkts {'1.1':'9', '1.2':'20'} * @arkts 1.1&1.2 */ - disconnectServiceExtensionAbility(connection: number): Promise; + disconnectServiceExtensionAbility(connection: long): Promise; /** * Set mission label of current ability. @@ -4900,7 +4900,7 @@ declare class UIAbilityContext extends Context { * * @param { Want } want - The element name of the app service ability * @param { ConnectOptions } callback - The callback for obtaining the connection result - * @returns { number } Returns the number code of the ability connected + * @returns { long } Returns the number code of the ability connected * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 16000001 - The specified ability does not exist. * @throws { BusinessError } 16000002 - Incorrect ability type. @@ -4915,12 +4915,12 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 20 */ - connectAppServiceExtensionAbility(want: Want, callback: ConnectOptions): number; + connectAppServiceExtensionAbility(want: Want, callback: ConnectOptions): long; /** * Disconnect current ability from an app service extension, in contrast to {@link connectAppServiceExtensionAbility}. * - * @param { number } connection - The number code of the ability connected + * @param { long } connection - The number code of the ability connected * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 16000011 - The context does not exist. @@ -4929,7 +4929,7 @@ declare class UIAbilityContext extends Context { * @stagemodelonly * @since 20 */ - disconnectAppServiceExtensionAbility(connection: number): Promise; + disconnectAppServiceExtensionAbility(connection: long): Promise; } export default UIAbilityContext; \ No newline at end of file diff --git a/api/application/UIExtensionContext.d.ts b/api/application/UIExtensionContext.d.ts index 8ee099e6d3..9babbbb735 100755 --- a/api/application/UIExtensionContext.d.ts +++ b/api/application/UIExtensionContext.d.ts @@ -828,7 +828,7 @@ declare class UIExtensionContext extends ExtensionContext { * * @param { Want } want - The element name of the service ability * @param { ConnectOptions } options - The remote object instance - * @returns { number } Returns the number code of the ability connected + * @returns { long } Returns the number code of the ability connected * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000001 - The specified ability does not exist. @@ -847,12 +847,12 @@ declare class UIExtensionContext extends ExtensionContext { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - connectServiceExtensionAbility(want: Want, options: ConnectOptions): number; + connectServiceExtensionAbility(want: Want, options: ConnectOptions): long; /** * Disconnect an ability from a service extension, in contrast to {@link connectAbility}. * - * @param { number } connection - The number code of the ability connected + * @param { long } connection - The number code of the ability connected * @param { AsyncCallback } callback - The callback of disconnectAbility. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000011 - The context does not exist. @@ -862,12 +862,12 @@ declare class UIExtensionContext extends ExtensionContext { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - disconnectServiceExtensionAbility(connection: number, callback: AsyncCallback): void; + disconnectServiceExtensionAbility(connection: long, callback: AsyncCallback): void; /** * Disconnect an ability from a service extension, in contrast to {@link connectAbility}. * - * @param { number } connection - The number code of the ability connected + * @param { long } connection - The number code of the ability connected * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000011 - The context does not exist. @@ -877,7 +877,7 @@ declare class UIExtensionContext extends ExtensionContext { * @since arkts {'1.1':'10', '1.2':'20'} * @arkts 1.1&1.2 */ - disconnectServiceExtensionAbility(connection: number): Promise; + disconnectServiceExtensionAbility(connection: long): Promise; /** * Report to system when the extension is drawn completed. @@ -1074,7 +1074,7 @@ declare class UIExtensionContext extends ExtensionContext { * * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. - * @param { number } accountId - Indicates the account to start. + * @param { int } accountId - Indicates the account to start. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. @@ -1096,7 +1096,7 @@ declare class UIExtensionContext extends ExtensionContext { * @stagemodelonly * @since 18 */ - startServiceExtensionAbilityWithAccount(want: Want, accountId: number): Promise; + startServiceExtensionAbilityWithAccount(want: Want, accountId: int): Promise; /** * Set the uiextension to either not allow being covered by the host page or allow it. diff --git a/api/application/UIServiceExtensionContext.d.ts b/api/application/UIServiceExtensionContext.d.ts index f4be665a63..8100602bfe 100644 --- a/api/application/UIServiceExtensionContext.d.ts +++ b/api/application/UIServiceExtensionContext.d.ts @@ -115,7 +115,7 @@ export default class UIServiceExtensionContext extends ExtensionContext { * * @param { Want } want - Indicates the service extension to connect. * @param { ConnectOptions } options - Indicates the callback of connection. - * @returns { number } Returns the connection id. + * @returns { long } Returns the connection id. * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -135,12 +135,12 @@ export default class UIServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 14 */ - connectServiceExtensionAbility(want: Want, options: ConnectOptions): number; + connectServiceExtensionAbility(want: Want, options: ConnectOptions): long; /** * Disconnect an ability from a service extension, in contrast to {@link connectServiceExtensionAbility}. * - * @param { number } connectionId - the connection id returned from connectServiceExtensionAbility api. + * @param { long } connectionId - the connection id returned from connectServiceExtensionAbility api. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; * 2. Incorrect parameter types; 3. Parameter verification failed. @@ -151,5 +151,5 @@ export default class UIServiceExtensionContext extends ExtensionContext { * @stagemodelonly * @since 14 */ - disconnectServiceExtensionAbility(connectionId: number): Promise; + disconnectServiceExtensionAbility(connectionId: long): Promise; } diff --git a/api/application/shellCmdResult.d.ts b/api/application/shellCmdResult.d.ts index a6b5ca83b4..3a43b03a40 100644 --- a/api/application/shellCmdResult.d.ts +++ b/api/application/shellCmdResult.d.ts @@ -63,13 +63,13 @@ export interface ShellCmdResult { /** * shell cmd exec result. * - * @type { number } + * @type { int } * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice * @since arkts {'1.1':'11', '1.2':'20'} * @arkts 1.1&1.2 */ - exitCode: number; + exitCode: int; } /*** if arkts 1.1 */ -- Gitee