20 ],
21 “actions”: [
22 “action.system.home”
23 ]
24 }
25 ],
26 “orientation”: “unspecified”,
27 “name”: “com.example.demo.MainAbility”,
28 “icon”: “$media:icon”,
29 “description”: “$string:mainability_description”,
30 “label”: “$string:entry_MainAbility”,
31 “type”: “page”,
32 “launchType”: “standard”
33 }
34 ]
35 }
| 属性名称 | 子属性名称 | 含义 | 数据类型 | 是否可缺省 |
| — | — | — | — | — |
| package | - | 表示HAP的包结构名称,在应用内应保证唯一性。采用反向域名格式(建议与HAP的工程目录保持一致)。字符串长度不超过127字节。 | 字符串 | 否 |
| name | - | 表示HAP的类名。采用反向域名方式表示,前缀需要与同级的package标签指定的包名一致,也可采用“.”开头的命名方式。字符串长度不超过255字节。 | 字符串 | 否 |
| mainAbility | - | 表示HAP包