Fix error word of ability and notification

Signed-off-by: yuyaozhi <yuyaozhi@huawei.com>
This commit is contained in:
yuyaozhi 2022-11-16 11:20:21 +08:00
parent 1177e82a18
commit 05d716711a
19 changed files with 42 additions and 42 deletions

View File

@ -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

View File

@ -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,

View File

@ -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

View File

@ -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.

View File

@ -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;
export default appRecovery;

View File

@ -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<void> } callback - The callback of off.
@ -51,7 +51,7 @@ declare namespace missionManager {
function off(type: "mission", listenerId: number, callback: AsyncCallback<void>): 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<void> } The promise returned by the function.

View File

@ -81,7 +81,7 @@ declare namespace wantAgent {
function getWant(agent: WantAgent): Promise<Want>;
/**
* 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<void> } 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>): 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<void> } The promise returned by the function.
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.

View File

@ -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
*/

View File

@ -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<string> } formIds - Indicates the specified form id.
* @param { boolean } isProtected - Indicates whether to be protected.
* @param { AsyncCallback<void> } 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<string> } formIds - Indicates the specified form id.
* @param { boolean } isProtected - Indicates whether to be protected.
* @returns { Promise<void> } The promise returned by the function.

View File

@ -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.

View File

@ -59,7 +59,7 @@ declare namespace abilityManager {
function updateConfiguration(config: Configuration): Promise<void>;
/**
* Get information about running abilitys
* Get information about running abilities
*
* @since 8
* @syscap SystemCapability.Ability.AbilityRuntime.Core

View File

@ -137,7 +137,7 @@ declare namespace formHost {
function enableFormsUpdate(formIds: Array<string>): Promise<void>;
/**
* Notifys the form framework to make the specified forms non updatable.
* Notify the form framework to make the specified forms non updatable.
*
* <p>You can use this method to set form refresh state to false, the form do not receive
* new update from service.</p>
@ -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<string>, callback: AsyncCallback<number>): void;
function deleteInvalidForms(formIds: Array<string>): Promise<number>;
@ -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<formInfo.FormStateInfo>): void;
function acquireFormState(want: Want): Promise<formInfo.FormStateInfo>;
@ -241,7 +241,7 @@ declare namespace formHost {
function off(type: "formUninstall", callback?: Callback<string>): void;
/**
* notify form is Visible
* Notify form is Visible
*
* <p>You can use this method to notify form visible state.</p>
*
@ -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<string>, isVisible: boolean, callback: AsyncCallback<void>): void;
function notifyFormsVisible(formIds: Array<string>, isVisible: boolean): Promise<void>;
/**
* notify form enable update state.
* Notify form enable update state.
*
* <p>You can use this method to notify form enable update state.</p>
*
@ -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<string>, isEnableUpdate: boolean, callback: AsyncCallback<void>): void;
function notifyFormsEnableUpdate(formIds: Array<string>, isEnableUpdate: boolean): Promise<void>;
@ -285,7 +285,7 @@ declare namespace formHost {
function shareForm(formId: string, deviceId: string): Promise<void>;
/**
* 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<string>, isProtected: boolean, callback: AsyncCallback<void>): void;
function notifyFormsPrivacyProtected(formIds: Array<string>, isProtected: boolean): Promise<void>;

View File

@ -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

View File

@ -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

View File

@ -68,7 +68,7 @@ declare namespace wantAgent {
function getWant(agent: WantAgent): Promise<Want>;
/**
* 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.
*/

View File

@ -260,7 +260,7 @@ export interface Context extends BaseContext {
isUpdatingConfigurations(): Promise<boolean>;
/**
* 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

View File

@ -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<void> } 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<void> } 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<void> } 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<void> } The promise returned by the function.

View File

@ -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<void> } 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<void> } 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<void> } 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<void> } The promise returned by the function.

View File

@ -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<void> } 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<void> } 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<void> } 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<void> } The promise returned by the function.