• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Skill
2<!--Kit: Ability Kit-->
3<!--Subsystem: BundleManager-->
4<!--Owner: @wanghang904-->
5<!--Designer: @hanfeng6-->
6<!--Tester: @kongjing2-->
7<!--Adviser: @Brilliantry_Rui-->
8
9The module defines a skill object. Such an object can be obtained through [bundleManager.getBundleInfoForSelf](js-apis-bundleManager.md#bundlemanagergetbundleinfoforself), 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](./js-apis-bundleManager-bundleInfo.md) -> [HapModuleInfo](./js-apis-bundleManager-hapModuleInfo.md) -> [AbilityInfo](./js-apis-bundleManager-abilityInfo.md) or [ExtensionAbilityInfo](./js-apis-bundleManager-extensionAbilityInfo.md).)
10
11> **NOTE**
12>
13> 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.
14
15## Modules to Import
16
17```ts
18import { bundleManager } from '@kit.AbilityKit';
19```
20
21## Skill
22
23**Atomic service API**: This API can be used in atomic services since API version 12.
24
25**System capability**: SystemCapability.BundleManager.BundleFramework.Core
26| Name    | Type  | Read-Only| Optional| Description      |
27| -------- | ------ | ---- | ---- | ---------- |
28| actions     | Array\<string> | Yes  | No  | [Actions](js-apis-ability-wantConstant.md#action) received by the skill.|
29| entities    | Array\<string> | Yes  | No  | [Entities](js-apis-ability-wantConstant.md#entity) received by the skill.  |
30| uris | Array\<SkillUri> | Yes  | No  | URIs that match Want.|
31| domainVerify     | boolean | Yes  | No  | DomainVerify value received by the skill. This parameter exists only in **AbilityInfo** and specifies whether domain name verification is enabled. **true** if enabled, **false** otherwise.|
32
33## SkillUri
34
35**Atomic service API**: This API can be used in atomic services since API version 12.
36
37**System capability**: SystemCapability.BundleManager.BundleFramework.Core
38| Name           | Type  | Read-Only| Optional| Description                                                       |
39| --------------- | ------ | ---- | ---- | ----------------------------------------------------------- |
40| scheme          | string | Yes  | No  | Scheme of the URI, such as HTTP, HTTPS, file, and FTP.         |
41| host            | string | Yes  | No  | Host address of the URI. This parameter takes effect only when **scheme** is specified.           |
42| port            | number | Yes  | No  | Port number of the URI. This parameter takes effect only when both **scheme** and **host** are specified.  |
43| path            | string | Yes  | No  | Path of the URI. This parameter takes effect only when both **scheme** and **host** are specified.  |
44| pathStartWith   | string | Yes  | No  | Prefix of the path of the URI. This parameter takes effect only when both **scheme** and **host** are specified.|
45| pathRegex       | string | Yes  | No  | Regular expression of the path of the URI. This parameter takes effect only when both **scheme** and **host** are specified.|
46| type            | string | Yes  | No  | Data type that matches Want. The value complies with the [Multipurpose Internet Mail Extensions (MIME) type](../../database/uniform-data-type-descriptors.md#utd-definition) specification.|
47| utd             | string | Yes  | No  | Standard data type of the URI that matches Want. This parameter applies to sharing scenarios.|
48| maxFileSupported | number   | Yes  | No  | Maximum 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.|
49| linkFeature     | string | Yes  | No  | [Feature type](../../application-models/app-uri-config.md#description-of-linkfeature) provided by the URI. It is used to implement redirection between applications and exists only in **AbilityInfo**.|
50