diff --git a/api/@ohos.ability.featureAbility.d.ts b/api/@ohos.ability.featureAbility.d.ts index 944d6d321..2b6250e53 100644 --- a/api/@ohos.ability.featureAbility.d.ts +++ b/api/@ohos.ability.featureAbility.d.ts @@ -35,7 +35,7 @@ import window from './@ohos.window'; */ declare namespace featureAbility { /** - * Obtain the want sended from the source ability. + * Obtain the want sent from the source ability. * * @since 6 * @syscap SystemCapability.Ability.AbilityRuntime.FAModel diff --git a/api/@ohos.ability.wantConstant.d.ts b/api/@ohos.ability.wantConstant.d.ts index 9ad6e2e43..3b4fc7daa 100644 --- a/api/@ohos.ability.wantConstant.d.ts +++ b/api/@ohos.ability.wantConstant.d.ts @@ -395,7 +395,7 @@ declare namespace wantConstant { FLAG_INSTALL_ON_DEMAND = 0x00000800, /** - * Install the specifiedi ability with background mode if it's not installed. + * Install the specified ability with background mode if it's not installed. */ FLAG_INSTALL_WITH_BACKGROUND_MODE = 0x80000000, diff --git a/api/@ohos.app.ability.AbilityLifecycleCallback.d.ts b/api/@ohos.app.ability.AbilityLifecycleCallback.d.ts index 7f62e30fe..2d96e1638 100644 --- a/api/@ohos.app.ability.AbilityLifecycleCallback.d.ts +++ b/api/@ohos.app.ability.AbilityLifecycleCallback.d.ts @@ -44,7 +44,7 @@ export default class AbilityLifecycleCallback { onWindowStageCreate(ability: UIAbility, windowStage: window.WindowStage): void; /** - * Called back when a window stage is actived. + * Called back when a window stage is active. * @param { Ability } ability - Indicates the ability to register for listening. * @param { window.WindowStage } windowStage - window stage to active * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore @@ -54,7 +54,7 @@ export default class AbilityLifecycleCallback { onWindowStageActive(ability: UIAbility, windowStage: window.WindowStage): void; /** - * Called back when a window stage is inactived. + * Called back when a window stage is inactive. * @param { Ability } ability - Indicates the ability to register for listening. * @param { window.WindowStage } windowStage - window stage to inactive * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore diff --git a/api/@ohos.app.ability.AbilityStage.d.ts b/api/@ohos.app.ability.AbilityStage.d.ts index 8aa0201a3..34640a7be 100644 --- a/api/@ohos.app.ability.AbilityStage.d.ts +++ b/api/@ohos.app.ability.AbilityStage.d.ts @@ -44,7 +44,7 @@ export default class AbilityStage { /** * Called back when start specified ability. - * @param { Want } want - Indicates the want info of startd ability. + * @param { Want } want - Indicates the want info of started ability. * @return { string } The user returns an ability string ID. If the ability of this ID has been started before, * do not create a new instance and pull it back to the top of the stack. * Otherwise, create a new instance and start it. diff --git a/api/@ohos.app.ability.appRecovery.d.ts b/api/@ohos.app.ability.appRecovery.d.ts index a9c1cad36..ba817cdb6 100644 --- a/api/@ohos.app.ability.appRecovery.d.ts +++ b/api/@ohos.app.ability.appRecovery.d.ts @@ -15,11 +15,11 @@ /** * This module provides the capability to app receovery. - * @import appReceovery from '@ohos.app.ability.appRecovery' + * @import appRecovery from '@ohos.app.ability.appRecovery' * @syscap SystemCapability.Ability.AbilityRuntime.Core * @since 9 */ -declare namespace appReceovery { +declare namespace appRecovery { /** * The type of no restart mode. * @enum { number } @@ -118,4 +118,4 @@ declare namespace appReceovery { function saveAppState(): boolean; } -export default appReceovery; \ No newline at end of file +export default appRecovery; \ No newline at end of file diff --git a/api/@ohos.app.ability.missionManager.d.ts b/api/@ohos.app.ability.missionManager.d.ts index efbed8686..898b5b42d 100644 --- a/api/@ohos.app.ability.missionManager.d.ts +++ b/api/@ohos.app.ability.missionManager.d.ts @@ -40,7 +40,7 @@ declare namespace missionManager { function on(type: "mission", listener: MissionListener): number; /** - * Unrgister the missionListener to ams. + * Unregister the missionListener to ams. * @param { string } type - mission. * @param { number } listenerId - Indicates the listener id to be unregistered. * @param { AsyncCallback } callback - The callback of off. @@ -51,7 +51,7 @@ declare namespace missionManager { function off(type: "mission", listenerId: number, callback: AsyncCallback): void; /** - * Unrgister the missionListener to ams. + * Unregister the missionListener to ams. * @param { string } type - mission. * @param { number } listenerId - Indicates the listener id to be unregistered. * @returns { Promise } The promise returned by the function. diff --git a/api/@ohos.app.ability.wantAgent.d.ts b/api/@ohos.app.ability.wantAgent.d.ts index ace81f0b4..fa4f617f9 100644 --- a/api/@ohos.app.ability.wantAgent.d.ts +++ b/api/@ohos.app.ability.wantAgent.d.ts @@ -81,7 +81,7 @@ declare namespace wantAgent { function getWant(agent: WantAgent): Promise; /** - * Cancels a WantAgent. Only the application that creates the WantAgent can cancel it. + * Cancel a WantAgent. Only the application that creates the WantAgent can cancel it. * @param { WantAgent } agent - Indicates the WantAgent. * @param { AsyncCallback } callback - The callback of cancel. * @throws { BusinessError } 401 - If the input parameter is not valid parameter. @@ -91,7 +91,7 @@ declare namespace wantAgent { function cancel(agent: WantAgent, callback: AsyncCallback): void; /** - * Cancels a WantAgent. Only the application that creates the WantAgent can cancel it. + * Cancel a WantAgent. Only the application that creates the WantAgent can cancel it. * @param { WantAgent } agent - Indicates the WantAgent. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 401 - If the input parameter is not valid parameter. diff --git a/api/@ohos.app.ability.wantConstant.d.ts b/api/@ohos.app.ability.wantConstant.d.ts index 05e563cd9..5df833d01 100644 --- a/api/@ohos.app.ability.wantConstant.d.ts +++ b/api/@ohos.app.ability.wantConstant.d.ts @@ -405,7 +405,7 @@ declare namespace wantConstant { FLAG_INSTALL_ON_DEMAND = 0x00000800, /** - * Install the specifiedi ability with background mode if it's not installed. + * Install the specified ability with background mode if it's not installed. * @syscap SystemCapability.Ability.AbilityBase * @since 9 */ diff --git a/api/@ohos.app.form.formHost.d.ts b/api/@ohos.app.form.formHost.d.ts index 96d204f77..acc0981a4 100644 --- a/api/@ohos.app.form.formHost.d.ts +++ b/api/@ohos.app.form.formHost.d.ts @@ -512,7 +512,7 @@ declare namespace formHost { /** * Notify form that privacy whether to be protected. - * @permission ohos.permission.REQUIRE_FORM. + * @permission ohos.permission.REQUIRE_FORM * @param { Array } formIds - Indicates the specified form id. * @param { boolean } isProtected - Indicates whether to be protected. * @param { AsyncCallback } callback - The callback of notifyFormsPrivacyProtected. @@ -525,7 +525,7 @@ declare namespace formHost { /** * Notify form that privacy whether to be protected. - * @permission ohos.permission.REQUIRE_FORM. + * @permission ohos.permission.REQUIRE_FORM * @param { Array } formIds - Indicates the specified form id. * @param { boolean } isProtected - Indicates whether to be protected. * @returns { Promise } The promise returned by the function. diff --git a/api/@ohos.application.AbilityStage.d.ts b/api/@ohos.application.AbilityStage.d.ts index 8d7b4cc1c..7b452bb74 100644 --- a/api/@ohos.application.AbilityStage.d.ts +++ b/api/@ohos.application.AbilityStage.d.ts @@ -53,7 +53,7 @@ export default class AbilityStage { * * @since 9 * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @param want Indicates the want info of startd ability. + * @param want Indicates the want info of started ability. * @return The user returns an ability string ID. If the ability of this ID has been started before, * do not create a new instance and pull it back to the top of the stack. * Otherwise, create a new instance and start it. diff --git a/api/@ohos.application.abilityManager.d.ts b/api/@ohos.application.abilityManager.d.ts index dfa26ab42..9c23cb053 100644 --- a/api/@ohos.application.abilityManager.d.ts +++ b/api/@ohos.application.abilityManager.d.ts @@ -59,7 +59,7 @@ declare namespace abilityManager { function updateConfiguration(config: Configuration): Promise; /** - * Get information about running abilitys + * Get information about running abilities * * @since 8 * @syscap SystemCapability.Ability.AbilityRuntime.Core diff --git a/api/@ohos.application.formHost.d.ts b/api/@ohos.application.formHost.d.ts index 7f38585ed..90fb9445d 100644 --- a/api/@ohos.application.formHost.d.ts +++ b/api/@ohos.application.formHost.d.ts @@ -137,7 +137,7 @@ declare namespace formHost { function enableFormsUpdate(formIds: Array): Promise; /** - * Notifys the form framework to make the specified forms non updatable. + * Notify the form framework to make the specified forms non updatable. * *

You can use this method to set form refresh state to false, the form do not receive * new update from service.

@@ -197,7 +197,7 @@ declare namespace formHost { * @syscap SystemCapability.Ability.Form * @param formIds Indicates the specify form id. * @return Returns the number of invalid forms deleted by the Form Manager Service - * @permission ohos.permission.REQUIRE_FORM. + * @permission ohos.permission.REQUIRE_FORM */ function deleteInvalidForms(formIds: Array, callback: AsyncCallback): void; function deleteInvalidForms(formIds: Array): Promise; @@ -211,7 +211,7 @@ declare namespace formHost { * @syscap SystemCapability.Ability.Form * @param want Indicates want of the form. * @return Returns form state {@link FormStateInfo} - * @permission ohos.permission.REQUIRE_FORM and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED. + * @permission ohos.permission.REQUIRE_FORM and ohos.permission.GET_BUNDLE_INFO_PRIVILEGED */ function acquireFormState(want: Want, callback: AsyncCallback): void; function acquireFormState(want: Want): Promise; @@ -241,7 +241,7 @@ declare namespace formHost { function off(type: "formUninstall", callback?: Callback): void; /** - * notify form is Visible + * Notify form is Visible * *

You can use this method to notify form visible state.

* @@ -250,13 +250,13 @@ declare namespace formHost { * @param formIds Indicates the specify form id. * @param isVisible Indicates whether visible. * @return - - * @permission ohos.permission.REQUIRE_FORM. + * @permission ohos.permission.REQUIRE_FORM */ function notifyFormsVisible(formIds: Array, isVisible: boolean, callback: AsyncCallback): void; function notifyFormsVisible(formIds: Array, isVisible: boolean): Promise; /** - * notify form enable update state. + * Notify form enable update state. * *

You can use this method to notify form enable update state.

* @@ -265,7 +265,7 @@ declare namespace formHost { * @param formIds Indicates the specify form id. * @param isEnableUpdate Indicates whether enable update. * @return - - * @permission ohos.permission.REQUIRE_FORM. + * @permission ohos.permission.REQUIRE_FORM */ function notifyFormsEnableUpdate(formIds: Array, isEnableUpdate: boolean, callback: AsyncCallback): void; function notifyFormsEnableUpdate(formIds: Array, isEnableUpdate: boolean): Promise; @@ -285,7 +285,7 @@ declare namespace formHost { function shareForm(formId: string, deviceId: string): Promise; /** - * notify form that privacy wether need to be protected. + * Notify form that privacy wether need to be protected. * * @since 9 * @syscap SystemCapability.Ability.Form @@ -293,7 +293,7 @@ declare namespace formHost { * @param isProtected Indicates whether enable update. * @systemapi hide for inner use. * @return - - * @permission ohos.permission.REQUIRE_FORM. + * @permission ohos.permission.REQUIRE_FORM */ function notifyFormsPrivacyProtected(formIds: Array, isProtected: boolean, callback: AsyncCallback): void; function notifyFormsPrivacyProtected(formIds: Array, isProtected: boolean): Promise; diff --git a/api/@ohos.application.missionManager.d.ts b/api/@ohos.application.missionManager.d.ts index 46062f5f4..2ecb582a8 100644 --- a/api/@ohos.application.missionManager.d.ts +++ b/api/@ohos.application.missionManager.d.ts @@ -42,7 +42,7 @@ declare namespace missionManager { function registerMissionListener(listener: MissionListener): number; /** - * Unrgister the missionListener to ams. + * Unregister the missionListener to ams. * * @since 8 * @syscap SystemCapability.Ability.AbilityRuntime.Mission diff --git a/api/@ohos.continuation.continuationManager.d.ts b/api/@ohos.continuation.continuationManager.d.ts index 292945f77..12e1016b2 100644 --- a/api/@ohos.continuation.continuationManager.d.ts +++ b/api/@ohos.continuation.continuationManager.d.ts @@ -19,7 +19,7 @@ import { ContinuationExtraParams } from './continuation/continuationExtraParams' /** * Provides methods for interacting with the continuation manager service, including methods for registering and - * unregistering the ability to hop, updating the device connection state, and showing the list of devices + * Unregister the ability to hop, updating the device connection state, and showing the list of devices * that can be selected for hopping. * @namespace continuationManager * @syscap SystemCapability.Ability.DistributedAbilityManager diff --git a/api/@ohos.wantAgent.d.ts b/api/@ohos.wantAgent.d.ts index 9863e89de..e0d02af07 100644 --- a/api/@ohos.wantAgent.d.ts +++ b/api/@ohos.wantAgent.d.ts @@ -68,7 +68,7 @@ declare namespace wantAgent { function getWant(agent: WantAgent): Promise; /** - * Cancels a WantAgent. Only the application that creates the WantAgent can cancel it. + * Cancel a WantAgent. Only the application that creates the WantAgent can cancel it. * * @param WantAgent to cancel. */ diff --git a/api/app/context.d.ts b/api/app/context.d.ts index e24a3dd24..caa859e1d 100644 --- a/api/app/context.d.ts +++ b/api/app/context.d.ts @@ -260,7 +260,7 @@ export interface Context extends BaseContext { isUpdatingConfigurations(): Promise; /** - * Informs the system of the time required for drawing this Page ability. + * Inform the system of the time required for drawing this Page ability. * @since 7 * @syscap SystemCapability.Ability.AbilityRuntime.Core * @FAModelOnly diff --git a/api/application/AbilityContext.d.ts b/api/application/AbilityContext.d.ts index 64c9ea8ba..40b12e59f 100755 --- a/api/application/AbilityContext.d.ts +++ b/api/application/AbilityContext.d.ts @@ -259,7 +259,7 @@ export default class AbilityContext extends Context { /** * Starts a new service extension ability with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @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 { AsyncCallback } callback - The callback of startServiceExtensionAbilityWithAccount. @@ -273,7 +273,7 @@ export default class AbilityContext extends Context { /** * Starts a new service extension ability with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. * @param { number } accountId - Indicates the account to start. * @returns { Promise } The promise returned by the function. @@ -311,7 +311,7 @@ export default class AbilityContext extends Context { /** * Stops a service within the same application with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @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 { AsyncCallback } callback - The callback of stopServiceExtensionAbilityWithAccount. @@ -325,7 +325,7 @@ export default class AbilityContext extends Context { /** * Stops a service within the same application with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. * @param { number } accountId - Indicates the accountId to start. * @returns { Promise } The promise returned by the function. diff --git a/api/application/ServiceExtensionContext.d.ts b/api/application/ServiceExtensionContext.d.ts index acc02d417..37a593025 100644 --- a/api/application/ServiceExtensionContext.d.ts +++ b/api/application/ServiceExtensionContext.d.ts @@ -134,7 +134,7 @@ export default class ServiceExtensionContext extends ExtensionContext { /** * Starts a new service extension ability with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @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 { AsyncCallback } callback - The callback of startServiceExtensionAbilityWithAccount. @@ -148,7 +148,7 @@ export default class ServiceExtensionContext extends ExtensionContext { /** * Starts a new service extension ability with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. * @param { number } accountId - Indicates the account to start. * @returns { Promise } The promise returned by the function. @@ -186,7 +186,7 @@ export default class ServiceExtensionContext extends ExtensionContext { /** * Stops a service within the same application with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @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 { AsyncCallback } callback - The callback of stopServiceExtensionAbilityWithAccount. @@ -200,7 +200,7 @@ export default class ServiceExtensionContext extends ExtensionContext { /** * Stops a service within the same application with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. * @param { number } accountId - Indicates the accountId to start. * @returns { Promise } The promise returned by the function. diff --git a/api/application/UIAbilityContext.d.ts b/api/application/UIAbilityContext.d.ts index 0c5e2e0f6..850a74cb0 100755 --- a/api/application/UIAbilityContext.d.ts +++ b/api/application/UIAbilityContext.d.ts @@ -259,7 +259,7 @@ export default class UIAbilityContext extends Context { /** * Starts a new service extension ability with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @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 { AsyncCallback } callback - The callback of startServiceExtensionAbilityWithAccount. @@ -273,7 +273,7 @@ export default class UIAbilityContext extends Context { /** * Starts a new service extension ability with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. * @param { number } accountId - Indicates the account to start. * @returns { Promise } The promise returned by the function. @@ -311,7 +311,7 @@ export default class UIAbilityContext extends Context { /** * Stops a service within the same application with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @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 { AsyncCallback } callback - The callback of stopServiceExtensionAbilityWithAccount. @@ -325,7 +325,7 @@ export default class UIAbilityContext extends Context { /** * Stops a service within the same application with account. - * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS. + * @permission ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS * @param { Want } want - Indicates the want info to start. * @param { number } accountId - Indicates the accountId to start. * @returns { Promise } The promise returned by the function.