fix review comments

Signed-off-by: xinking129 <xinxin13@huawei.com>
This commit is contained in:
xinking129 2023-05-11 14:47:31 +08:00
parent ebb6cbd32a
commit 71dace0002
11 changed files with 110 additions and 14 deletions

View File

@ -20,7 +20,7 @@
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.dataUriUtils.d.ts
* @useinstead ohos.app.ability.dataUriUtils
*/
declare namespace dataUriUtils {
/**
@ -31,6 +31,7 @@ declare namespace dataUriUtils {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.dataUriUtils
*/
function getId(uri: string): number;
@ -43,6 +44,7 @@ declare namespace dataUriUtils {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.dataUriUtils
*/
function attachId(uri: string, id: number): string;
@ -54,6 +56,7 @@ declare namespace dataUriUtils {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.dataUriUtils
*/
function deleteId(uri: string): string;
@ -66,6 +69,7 @@ declare namespace dataUriUtils {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.dataUriUtils
*/
function updateId(uri: string, id: number): string;
}

View File

@ -239,7 +239,7 @@ declare namespace featureAbility {
function getWindow(): Promise<window.Window>;
/**
* Obtain the window configuration.
* Enum for the window configuration.
*
* @enum { number }
* @syscap SystemCapability.Ability.AbilityRuntime.FAModel
@ -255,7 +255,7 @@ declare namespace featureAbility {
}
/**
* Obtain the window properties.
* Enum for the special start setting used in starting ability.
*
* @enum { string }
* @syscap SystemCapability.Ability.AbilityRuntime.FAModel
@ -269,7 +269,7 @@ declare namespace featureAbility {
}
/**
* Obtain the errorCode.
* Enum for the error code.
*
* @enum { number }
* @syscap SystemCapability.Ability.AbilityRuntime.FAModel
@ -284,7 +284,7 @@ declare namespace featureAbility {
}
/**
* Indicates the operation type of data.
* Enum for the operation type of data.
*
* @enum { number }
* @syscap SystemCapability.Ability.AbilityRuntime.FAModel
@ -299,7 +299,7 @@ declare namespace featureAbility {
}
/**
* The context of an ability or an application. It allows access to
* The context of an ability or an application. It allows access to
* application-specific resources, request and verification permissions.
* Can only be obtained through the ability.
*
@ -318,6 +318,8 @@ declare namespace featureAbility {
export type AppVersionInfo = _AppVersionInfo;
/**
* This process information about an application.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 9
*/

View File

@ -30,6 +30,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
export enum Action {
/**
@ -38,6 +39,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_HOME = 'ohos.want.action.home',
@ -47,6 +49,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_DIAL = 'ohos.want.action.dial',
@ -56,6 +59,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_SEARCH = 'ohos.want.action.search',
@ -66,6 +70,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_WIRELESS_SETTINGS = 'ohos.settings.wireless',
@ -75,6 +80,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_MANAGE_APPLICATIONS_SETTINGS = 'ohos.settings.manage.applications',
@ -86,6 +92,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_APPLICATION_DETAILS_SETTINGS = 'ohos.settings.application.details',
@ -95,6 +102,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_SET_ALARM = 'ohos.want.action.setAlarm',
@ -105,6 +113,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_SHOW_ALARMS = 'ohos.want.action.showAlarms',
@ -114,6 +123,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_SNOOZE_ALARM = 'ohos.want.action.snoozeAlarm',
@ -123,6 +133,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_DISMISS_ALARM = 'ohos.want.action.dismissAlarm',
@ -132,6 +143,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_DISMISS_TIMER = 'ohos.want.action.dismissTimer',
@ -141,6 +153,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_SEND_SMS = 'ohos.want.action.sendSms',
@ -150,6 +163,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_CHOOSE = 'ohos.want.action.choose',
@ -159,6 +173,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 8
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_IMAGE_CAPTURE = 'ohos.want.action.imageCapture',
@ -168,6 +183,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 8
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_VIDEO_CAPTURE = 'ohos.want.action.videoCapture',
@ -177,6 +193,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_SELECT = 'ohos.want.action.select',
@ -186,6 +203,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_SEND_DATA = 'ohos.want.action.sendData',
@ -195,6 +213,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_SEND_MULTIPLE_DATA = 'ohos.want.action.sendMultipleData',
@ -204,6 +223,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_SCAN_MEDIA_FILE = 'ohos.want.action.scanMediaFile',
@ -213,6 +233,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_VIEW_DATA = 'ohos.want.action.viewData',
@ -222,6 +243,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_EDIT_DATA = 'ohos.want.action.editData',
@ -231,6 +253,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
INTENT_PARAMS_INTENT = 'ability.want.params.INTENT',
@ -240,6 +263,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
INTENT_PARAMS_TITLE = 'ability.want.params.TITLE',
@ -249,6 +273,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ACTION_FILE_SELECT = 'ohos.action.fileSelect',
@ -258,6 +283,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
PARAMS_STREAM = 'ability.params.stream',
@ -279,6 +305,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
export enum Entity {
/**
@ -287,6 +314,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ENTITY_DEFAULT = 'entity.system.default',
@ -296,6 +324,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ENTITY_HOME = 'entity.system.home',
@ -305,6 +334,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ENTITY_VOICE = 'entity.system.voice',
@ -314,6 +344,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ENTITY_BROWSABLE = 'entity.system.browsable',
@ -323,6 +354,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
ENTITY_VIDEO = 'entity.system.video'
}
@ -334,6 +366,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_AUTH_READ_URI_PERMISSION = 0x00000001,
@ -343,6 +376,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_AUTH_WRITE_URI_PERMISSION = 0x00000002,
@ -352,6 +386,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_ABILITY_FORWARD_RESULT = 0x00000004,
@ -361,6 +396,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_ABILITY_CONTINUATION = 0x00000008,
@ -370,6 +406,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_NOT_OHOS_COMPONENT = 0x00000010,
@ -379,6 +416,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_ABILITY_FORM_ENABLED = 0x00000020,
@ -389,6 +427,7 @@ declare namespace wantConstant {
* @systemapi
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_AUTH_PERSISTABLE_URI_PERMISSION = 0x00000040,
@ -399,6 +438,7 @@ declare namespace wantConstant {
* @systemapi
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_AUTH_PREFIX_URI_PERMISSION = 0x00000080,
@ -408,6 +448,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_ABILITYSLICE_MULTI_DEVICE = 0x00000100,
@ -418,6 +459,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_START_FOREGROUND_ABILITY = 0x00000200,
@ -428,6 +470,7 @@ declare namespace wantConstant {
* @systemapi
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_ABILITY_CONTINUATION_REVERSIBLE = 0x00000400,
@ -437,6 +480,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_INSTALL_ON_DEMAND = 0x00000800,
@ -446,6 +490,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_INSTALL_WITH_BACKGROUND_MODE = 0x80000000,
@ -456,6 +501,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_ABILITY_CLEAR_MISSION = 0x00008000,
@ -465,6 +511,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_ABILITY_NEW_MISSION = 0x10000000,
@ -475,6 +522,7 @@ declare namespace wantConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 6
* @deprecated since 9
* @useinstead ohos.app.ability.wantConstant
*/
FLAG_ABILITY_MISSION_TOP = 0x20000000
}

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import { AsyncCallback } from './basic';
import { AsyncCallback } from './@ohos.base';
import { Configuration } from './@ohos.app.ability.Configuration';
import { AbilityRunningInfo as _AbilityRunningInfo } from './application/AbilityRunningInfo';
import { ExtensionRunningInfo as _ExtensionRunningInfo } from './application/ExtensionRunningInfo';

View File

@ -319,7 +319,8 @@ declare namespace appManager {
function getAppMemorySize(callback: AsyncCallback<number>): void;
/**
* If you apply for permission, you can obtain information about all running processes. If you do not apply, you can only obtain information about the current process.
* If you apply for permission, you can obtain information about all running processes.
* If you do not apply, you can only obtain information about the current process.
*
* @permission ohos.permission.GET_RUNNING_INFO
* @returns { Promise<Array<ProcessInformation>> } Returns the array of {@link ProcessInformation}.
@ -330,7 +331,8 @@ declare namespace appManager {
function getRunningProcessInformation(): Promise<Array<ProcessInformation>>;
/**
* If you apply for permission, you can obtain information about all running processes. If you do not apply, you can only obtain information about the current process.
* If you apply for permission, you can obtain information about all running processes.
* If you do not apply, you can only obtain information about the current process.
*
* @permission ohos.permission.GET_RUNNING_INFO
* @param { AsyncCallback<Array<ProcessInformation>> } callback - The callback is used to return the array of {@link ProcessInformation}.
@ -364,7 +366,8 @@ 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 { AsyncCallback<boolean> } callback - The callback of checking the shared bundle running result. The result is true if running, false otherwise.
* @param { AsyncCallback<boolean> } callback - The callback of checking the shared bundle running result.
* The result is true if running, false otherwise.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Not system application.
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.

View File

@ -40,7 +40,7 @@ declare namespace dialogRequest {
/**
* The result of requestDialogService with asynchronous callback.
*
* @interface RequestResult
* @typedef RequestResult
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @StageModelOnly
* @since 9

View File

@ -13,7 +13,7 @@
* limitations under the License.
*/
import { AsyncCallback, Callback } from './basic';
import { AsyncCallback, Callback } from './@ohos.base';
import Want from './@ohos.app.ability.Want';
import { WantAgentInfo as _WantAgentInfo } from './wantAgent/wantAgentInfo';
import { TriggerInfo as _TriggerInfo } from './wantAgent/triggerInfo';

View File

@ -56,7 +56,7 @@ declare namespace businessAbilityRouter {
/**
* This filter value is used to filter business ability info
*
* @interface BusinessAbilityFilter
* @typedef BusinessAbilityFilter
* @syscap SystemCapability.BundleManager.BundleFramework.Core
* @systemapi
* @since 10

View File

@ -18,7 +18,7 @@ import ConfigurationConstant from './@ohos.application.ConfigurationConstant';
/**
* configuration item.
*
* @interface Configuration
* @typedef Configuration
* @syscap SystemCapability.Ability.AbilityBase
* @since 8
* @deprecated since 9
@ -31,6 +31,7 @@ export interface Configuration {
* @syscap SystemCapability.Ability.AbilityBase
* @since 8
* @deprecated since 9
* @useinstead ohos.app.ability.Configuration
*/
language?: string;
@ -40,6 +41,7 @@ export interface Configuration {
* @syscap SystemCapability.Ability.AbilityBase
* @since 8
* @deprecated since 9
* @useinstead ohos.app.ability.Configuration
*/
colorMode?: ConfigurationConstant.ColorMode;
}

View File

@ -28,6 +28,7 @@ declare namespace ConfigurationConstant {
* @syscap SystemCapability.Ability.AbilityBase
* @since 8
* @deprecated since 9
* @useinstead ohos.app.ability.ConfigurationConstant
*/
export enum ColorMode {
COLOR_MODE_NOT_SET = -1,

View File

@ -37,6 +37,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function getBundleName(agent: WantAgent, callback: AsyncCallback<string>): void;
@ -48,6 +49,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function getBundleName(agent: WantAgent): Promise<string>;
@ -59,6 +61,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function getUid(agent: WantAgent, callback: AsyncCallback<number>): void;
@ -70,6 +73,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function getUid(agent: WantAgent): Promise<number>;
@ -82,6 +86,7 @@ declare namespace wantAgent {
* @systemapi
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function getWant(agent: WantAgent, callback: AsyncCallback<Want>): void;
@ -94,6 +99,7 @@ declare namespace wantAgent {
* @systemapi
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function getWant(agent: WantAgent): Promise<Want>;
@ -105,6 +111,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function cancel(agent: WantAgent, callback: AsyncCallback<void>): void;
@ -116,6 +123,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function cancel(agent: WantAgent): Promise<void>;
@ -128,6 +136,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function trigger(agent: WantAgent, triggerInfo: TriggerInfo, callback?: Callback<CompleteData>): void;
@ -140,6 +149,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function equal(agent: WantAgent, otherAgent: WantAgent, callback: AsyncCallback<boolean>): void;
@ -152,6 +162,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function equal(agent: WantAgent, otherAgent: WantAgent): Promise<boolean>;
@ -163,6 +174,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function getWantAgent(info: WantAgentInfo, callback: AsyncCallback<WantAgent>): void;
@ -174,6 +186,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
function getWantAgent(info: WantAgentInfo): Promise<WantAgent>;
@ -184,6 +197,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
export enum WantAgentFlags {
/**
@ -193,6 +207,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
ONE_TIME_FLAG = 0,
@ -203,6 +218,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
NO_BUILD_FLAG,
@ -213,6 +229,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
CANCEL_PRESENT_FLAG,
@ -223,6 +240,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
UPDATE_PRESENT_FLAG,
@ -232,6 +250,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
CONSTANT_FLAG,
@ -241,6 +260,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
REPLACE_ELEMENT,
@ -250,6 +270,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
REPLACE_ACTION,
@ -259,6 +280,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
REPLACE_URI,
@ -268,6 +290,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
REPLACE_ENTITIES,
@ -277,6 +300,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
REPLACE_BUNDLE
}
@ -288,6 +312,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
export enum OperationType {
/**
@ -296,6 +321,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
UNKNOWN_TYPE = 0,
@ -305,6 +331,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
START_ABILITY,
@ -314,6 +341,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
START_ABILITIES,
@ -323,6 +351,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
START_SERVICE,
@ -332,6 +361,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
SEND_COMMON_EVENT
}
@ -343,6 +373,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
export interface CompleteData {
/**
@ -351,6 +382,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
info: WantAgent;
@ -360,6 +392,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
want: Want;
@ -369,6 +402,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
finalCode: number;
@ -378,6 +412,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
finalData: string;
@ -387,6 +422,7 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
* @deprecated since 9
* @useinstead ohos.app.ability.wantAgent
*/
extraInfo?: { [key: string]: any };
}