The current repo belongs to Closed status, and some functions are restricted. For details, please refer to the description of repo status
46 Star 180 Fork 4.8K

OpenHarmony/interface_sdk-js
Closed

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
@ohos.app.ability.insightIntentDriver.d.ts 23.42 KB
Copy Edit Raw Blame History
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
/*
* Copyright (c) 2023-2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"),
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @kit AbilityKit
*/
import Want from './@ohos.app.ability.Want';
import wantConstant from './@ohos.app.ability.wantConstant';
import type { AsyncCallback } from './@ohos.base';
import type insightIntent from './@ohos.app.ability.insightIntent';
/**
* Insight intent driver.
*
* @namespace insightIntentDriver
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
declare namespace insightIntentDriver {
/**
* Param when execute insight intent.
*
* @typedef ExecuteParam
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
interface ExecuteParam {
/**
* Indicates the bundle name.
*
* @type { string }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
bundleName: string;
/**
* Indicates the module name.
*
* @type { string }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
moduleName: string;
/**
* Indicates the ability name.
*
* @type { string }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
abilityName: string;
/**
* Indicates the insight intent name.
*
* @type { string }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
insightIntentName: string;
/**
* Indicates the insight intent param.
*
* @type { Record<string, Object> }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
insightIntentParam: Record<string, Object>;
/**
* Indicates the execute mode.
*
* @type { insightIntent.ExecuteMode }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
executeMode: insightIntent.ExecuteMode;
/**
* Indicates the display Id, only works when executeMode is UIAbility foreground.
*
* @type { ?number }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since arkts {'1.1':'12', '1.2':'20'}
* @arkts 1.1&1.2
*/
displayId?: number;
/**
* Indicates the URIs will be authorized to the insight intent executor.
*
* @type { ?Array<string> }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since arkts {'1.1':'18', '1.2':'20'}
* @arkts 1.1&1.2
*/
uris?: Array<string>;
/**
* Indicates the URIs read and write permissions which consistent with {@link Want#flags},
* flags must be one of {@link wantConstant#Flags#FLAG_AUTH_READ_URI_PERMISSION},
* {@link wantConstant#Flags#FLAG_AUTH_WRITE_URI_PERMISSION},
* {@link wantConstant#Flags#FLAG_AUTH_READ_URI_PERMISSION}|
* {@link wantConstant#Flags#FLAG_AUTH_WRITE_URI_PERMISSION}.
*
* @type { ?number }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since arkts {'1.1':'18', '1.2':'20'}
* @arkts 1.1&1.2
*/
flags?: number;
}
/**
* Execute insight intent.
* If the caller application is in foreground, you can use this method to execute insight intent;
* If the caller application is in background, you need to apply for permission: ohos.permission.START_ABILITIES_FROM_BACKGROUND;
* If the execute mode is UI_ABILITY_BACKGROUND, you need to apply for permission: ohos.permission.ABILITY_BACKGROUND_COMMUNICATION.
*
* @permission ohos.permission.EXECUTE_INSIGHT_INTENT
* @param { ExecuteParam } param - Execute parameter.
* @param { AsyncCallback<insightIntent.ExecuteResult> } callback - The callback of executeIntent.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Not system application.
* @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.
* @throws { BusinessError } 16000002 - Incorrect ability type.
* @throws { BusinessError } 16000004 - Cannot start an invisible component.
* @throws { BusinessError } 16000005 - The specified process does not have the permission.
* @throws { BusinessError } 16000006 - Cross-user operations are not allowed.
* @throws { BusinessError } 16000008 - The crowdtesting application expires.
* @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.
* @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.
* @throws { BusinessError } 16000011 - The context does not exist.
* @throws { BusinessError } 16000012 - The application is controlled.
* @throws { BusinessError } 16000013 - The application is controlled by EDM.
* @throws { BusinessError } 16000050 - Internal error.
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
* @throws { BusinessError } 16000055 - Installation-free timed out.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
function execute(param: ExecuteParam, callback: AsyncCallback<insightIntent.ExecuteResult>): void;
/**
* Execute insight intent.
* If the caller application is in foreground, you can use this method to execute insight intent;
* If the caller application is in background, you need to apply for permission: ohos.permission.START_ABILITIES_FROM_BACKGROUND;
* If the execute mode is UI_ABILITY_BACKGROUND, you need to apply for permission: ohos.permission.ABILITY_BACKGROUND_COMMUNICATION.
*
* @permission ohos.permission.EXECUTE_INSIGHT_INTENT
* @param { ExecuteParam } param - Execute parameter.
* @returns { Promise<insightIntent.ExecuteResult> } Returns the execute result.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Not system application.
* @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.
* @throws { BusinessError } 16000002 - Incorrect ability type.
* @throws { BusinessError } 16000004 - Cannot start an invisible component.
* @throws { BusinessError } 16000005 - The specified process does not have the permission.
* @throws { BusinessError } 16000006 - Cross-user operations are not allowed.
* @throws { BusinessError } 16000008 - The crowdtesting application expires.
* @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.
* @throws { BusinessError } 16000010 - The call with the continuation and prepare continuation flag is forbidden.
* @throws { BusinessError } 16000011 - The context does not exist.
* @throws { BusinessError } 16000012 - The application is controlled.
* @throws { BusinessError } 16000013 - The application is controlled by EDM.
* @throws { BusinessError } 16000050 - Internal error.
* @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
* @throws { BusinessError } 16000055 - Installation-free timed out.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @StageModelOnly
* @since arkts {'1.1':'11', '1.2':'20'}
* @arkts 1.1&1.2
*/
function execute(param: ExecuteParam): Promise<insightIntent.ExecuteResult>;
/**
* Enum for intent type.
*
* @enum { string }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
enum InsightIntentType {
/**
* Link insight intent.
* {@link InsightIntentDecorator#InsightIntentLink}
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
LINK = '@InsightIntentLink',
/**
* Page insight intent.
* {@link InsightIntentDecorator#InsightIntentPage}
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
PAGE = '@InsightIntentPage',
/**
* Entry insight intent.
* {@link InsightIntentDecorator#InsightIntentEntry}
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
ENTRY = '@InsightIntentEntry',
/**
* Function insight intent.
* {@link InsightIntentDecorator#InsightIntentFunction}
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
FUNCTION = '@InsightIntentFunctionMethod',
/**
* Form insight intent.
* {@link InsightIntentDecorator#InsightIntentForm}
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
FORM = '@InsightIntentForm',
}
/**
* The insight intent information.
*
* @interface InsightIntentInfo
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
interface InsightIntentInfo {
/**
* The bundle name.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly bundleName: string;
/**
* The module name.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly moduleName: string;
/**
* The intent name.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly intentName: string;
/**
* The intent domain.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly domain: string;
/**
* The intent version.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly intentVersion: string;
/**
* The intent display name.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly displayName: string;
/**
* The intent display description.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly displayDescription: string;
/**
* The intent schema.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly schema: string;
/**
* The intent icon.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly icon: string;
/**
* The intent large language model description.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly llmDescription: string;
/**
* The intent keywords.
*
* @type { string[] }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly keywords: string[];
/**
* The intent type.
*
* @type { InsightIntentType }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly intentType: InsightIntentType;
/**
* The sub intent information.
* If the intentType is "@InsightIntentLink", subIntentInfo is a LinkIntentInfo.
* If the intentType is "@InsightIntentPage", subIntentInfo is a PageIntentInfo.
* If the intentType is "@InsightIntentFunctionMethod", subIntentInfo is a FunctionIntentInfo.
* If the intentType is "@InsightIntentForm", subIntentInfo is a FormIntentInfo.
* If the intentType is "@InsightIntentEntry", subIntentInfo is a EntryIntentInfo.
*
* @type { LinkIntentInfo | PageIntentInfo | FunctionIntentInfo | FormIntentInfo | EntryIntentInfo }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly subIntentInfo: LinkIntentInfo | PageIntentInfo | FunctionIntentInfo | FormIntentInfo | EntryIntentInfo;
/**
* The insight intent parameters.
*
* @type { Record<string, Object> }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly parameters: Record<string, Object>;
/**
* The type definition of the result returned by intent call.
*
* @type { Record<string, Object> }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly result: Record<string, Object>;
/**
* The entity informations.
*
* @type { Array<EntityInfo> }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly entities: Array<EntityInfo>;
}
/**
* The link intent information.
*
* @interface LinkIntentInfo
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
interface LinkIntentInfo {
/**
* The uri.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly uri: string;
}
/**
* The page intent information.
*
* @interface LinkIntentInfo
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
interface PageIntentInfo {
/**
* The uiability.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly uiAbility: string;
/**
* The page path.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly pagePath: string;
/**
* The navigationId.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly navigationId: string;
/**
* The navigation destination name.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly navDestinationName: string;
}
/**
* The function intent information.
*
* @interface FunctionIntentInfo
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
interface FunctionIntentInfo {}
/**
* The form intent information.
*
* @interface FormIntentInfo
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
interface FormIntentInfo {
/**
* The form extension ability name.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly abilityName: string;
/**
* The form name of the form extension ability.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly formName: string;
}
/**
* The form intent information.
*
* @interface EntryIntentInfo
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
interface EntryIntentInfo {
/**
* The ability name.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly abilityName: string;
/**
* The execute mode.
*
* @type { insightIntent.ExecuteMode[] }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly executeMode: insightIntent.ExecuteMode[];
}
/**
* Enum for get insight intent flag.
*
* @enum { number }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
enum GetInsightIntentFlag {
/**
* Get full insight intent.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
GET_FULL_INSIGHT_INTENT = 0x00000001,
/**
* Get summary insight intent.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
GET_SUMMARY_INSIGHT_INTENT = 0x00000002,
/**
* Get entities info.
*
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
GET_ENTITY_INFO = 0x00000004,
}
/**
* The entity information.
*
* @interface EntityInfo
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
interface EntityInfo {
/**
* The entity class name.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly className: string;
/**
* The entity Id.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly entityId: string;
/**
* The entity category.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly entityCategory: string;
/**
* The parameters of intent entity.
*
* @type { Record<string, Object> }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly parameters: Record<string, Object>;
/**
* The entity class name of parent.
*
* @type { string }
* @readonly
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
readonly parentClassName: string;
}
/**
* Get all insight intent information.
*
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
* @param { number } intentFlags - The flags of get insight intent information.
* @returns { Promise<Array<InsightIntentInfo>> } Returns the insight intent information.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Not system application.
* @throws { BusinessError } 16000050 - Internal error. Possible causes: 1. Failed to connect to the system service;
* 2. The system service failed to communicate with dependency module.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
function getAllInsightIntentInfo(intentFlags: number): Promise<Array<InsightIntentInfo>>;
/**
* Get insight intent information by bundle name.
*
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
* @param { string } bundleName - The specified bundle name.
* @param { number } intentFlags - The flags of get insight intent information.
* @returns { Promise<Array<InsightIntentInfo>> } Returns the insight intent information.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Not system application.
* @throws { BusinessError } 16000050 - Internal error. Possible causes: 1. Failed to connect to the system service;
* 2. The system service failed to communicate with dependency module.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
function getInsightIntentInfoByBundleName(bundleName: string, intentFlags: number): Promise<Array<InsightIntentInfo>>;
/**
* Get insight intent information by intent name.
*
* @permission ohos.permission.GET_BUNDLE_INFO_PRIVILEGED
* @param { string } bundleName - The specified bundle name.
* @param { string } moduleName - The specified module name.
* @param { string } intentName - The specified intent name.
* @param { number } intentFlags - The flags of get insight intent information.
* @returns { Promise<InsightIntentInfo> } Returns the insight intent information.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - Not system application.
* @throws { BusinessError } 16000050 - Internal error. Possible causes: 1. Failed to connect to the system service;
* 2. The system service failed to communicate with dependency module.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @systemapi
* @stagemodelonly
* @since 20
*/
function getInsightIntentInfoByIntentName(bundleName: string, moduleName: string, intentName: string, intentFlags: number): Promise<InsightIntentInfo>;
}
export default insightIntentDriver;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/interface_sdk-js.git
git@gitee.com:openharmony/interface_sdk-js.git
openharmony
interface_sdk-js
interface_sdk-js
master

Search