Function Info |
|---|
function ComponentInfo 组件信息类,包含展示运动中页面的应用包名、页面信息。 |
Constructor Name |
|---|
function ComponentInfo(String packageName, String className, String appType) 构造ComponentInfo。 |
Qualifier and Type | Method Name and Description |
|---|---|
String | 获取应用包名。 |
String | 获取运动中的页面信息。 |
String | 获取应用类型。 |
- | setPackageName(String packageName) 设置应用包名。 |
- | setClassName(String className) 设置运动中的页面信息。 |
- | setAppType(String appType) 设置应用类型。 |
Constructor |
|---|
function ComponentInfo(String packageName, String className, String appType) 构造ComponentInfo。 |
Parameters
Name | Description |
|---|---|
packageName | 应用包名。 |
className | 运动中的页面信息。 |
appType | 应用类型,鸿蒙应用需传入"Harmony"。 |
Method |
|---|
ComponentInfo.prototype.getPackageName = function () {} 获取应用包名。 |
Returns
Type | Description |
|---|---|
String | 应用包名。 |
Method |
|---|
ComponentInfo.prototype.getClassName = function () {} 获取运动中的页面信息。 |
Returns
Type | Description |
|---|---|
String | 运动中的页面信息。 |
Method |
|---|
ComponentInfo.prototype.getAppType = function () {} 获取应用类型。 |
Returns
Type | Description |
|---|---|
String | 应用类型。 |
Method |
|---|
ComponentInfo.prototype.setPackageName = function (String packageName) { 设置应用包名。 |
Parameters
Name | Description |
|---|---|
packageName | 应用包名。 |
Method |
|---|
ComponentInfo.prototype.setClassName = function (String className) { 设置运动中的页面信息。 |
Parameters
Name | Description |
|---|---|
className | 运动中的页面信息。 |
Method |
|---|
ComponentInfo.prototype.setAppType = function (String appType) { 设置应用类型。 |
Parameters
Name | Description |
|---|---|
appType | 应用类型。 |