openharmony 鸿蒙 js-apis-bundleManager-skill

2025-06-12 浏览 (1)

Skill

The Skill module defines a skill object. Such an object can be obtained through bundleManager.getBundleInfoForSelf, with at least GET_BUNDLE_INFO_WITH_HAP_MODULE, GET_BUNDLE_INFO_WITH_ABILITY, and GET_BUNDLE_INFO_WITH_SKILL passed in to bundleFlags. (The skill information is contained in BundleInfo -> HapModuleInfo -> AbilityInfo or ExtensionAbilityInfo.)

NOTE

The initial APIs of this module are supported since API version 12. Newly added APIs will be marked with a superscript to indicate their earliest API version.

Skill

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.BundleManager.BundleFramework.Core

NameTypeReadableWritableDescription
actionsArray<string>YesNoActions received by the skill.
entitiesArray<string>YesNoEntities received by the skill.
urisArray<SkillUri>YesNoURIs that match Want.
domainVerifybooleanYesNoDomainVerify value received by the skill. This parameter exists only in AbilityInfo and specifies whether domain name verification is enabled. The value true means that domain name verification is enabled, and false means the opposite.

SkillUri

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.BundleManager.BundleFramework.Core

NameTypeReadableWritableDescription
schemestringYesNoScheme of the URI, such as HTTP, HTTPS, file, and FTP.
hoststringYesNoHost address of the URI. This parameter takes effect only when scheme is specified.
portnumberYesNoPort number of the URI. This parameter takes effect only when both scheme and host are specified.
pathstringYesNoPath of the URI. This parameter takes effect only when both scheme and host are specified.
pathStartWithstringYesNoPrefix of the path of the URI. This parameter takes effect only when both scheme and host are specified.
pathRegexstringYesNoRegular expression of the path of the URI. This parameter takes effect only when both scheme and host are specified.
typestringYesNoData type that matches Want. The value complies with the Multipurpose Internet Mail Extensions (MIME) type specification.
utdstringYesNoStandard data type of the URI that matches Want. This parameter applies to sharing scenarios.
maxFileSupportednumberYesNoMaximum number of files of a specified type that can be received or opened at a time. The value must be an integer greater than or equal to 0.
linkFeaturestringYesNoFeature type provided by the URI. It is used to implement redirection between applications and exists only in AbilityInfo.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Kit

harmony 鸿蒙AbilityAccessControl

harmony 鸿蒙AbilityBase

harmony 鸿蒙AbilityBase_Element

harmony 鸿蒙AbilityRuntime

harmony 鸿蒙bundle

harmony 鸿蒙OH_NativeBundle_ApplicationInfo

harmony 鸿蒙OH_NativeBundle_ElementName

harmony 鸿蒙ability_access_control.h

harmony 鸿蒙ability_base_common.h

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/kxbMbd