目录

ComponentInfo

Function Info

function ComponentInfo

组件信息类,包含展示运动中页面的应用包名、页面信息。

Public Constructor Summary

Constructor Name

function ComponentInfo(String packageName, String className, String appType)

构造ComponentInfo。

Public Method Summary

Qualifier and Type

Method Name and Description

String

getPackageName()

获取应用包名。

String

getClassName()

获取运动中的页面信息。

String

getAppType()

获取应用类型。

-

setPackageName(String packageName)

设置应用包名。

-

setClassName(String className)

设置运动中的页面信息。

-

setAppType(String appType)

设置应用类型。

Public Constructors

[h2]ComponentInfo(String packageName, String className, String appType)

Constructor

function ComponentInfo(String packageName, String className, String appType)

构造ComponentInfo。

Parameters

Name

Description

packageName

应用包名。

className

运动中的页面信息。

appType

应用类型,鸿蒙应用需传入"Harmony"。

Public Methods

[h2]getPackageName()

Method

ComponentInfo.prototype.getPackageName = function () {}

获取应用包名。

Returns

Type

Description

String

应用包名。

[h2]getClassName()

Method

ComponentInfo.prototype.getClassName = function () {}

获取运动中的页面信息。

Returns

Type

Description

String

运动中的页面信息。

[h2]getAppType()

Method

ComponentInfo.prototype.getAppType = function () {}

获取应用类型。

Returns

Type

Description

String

应用类型。

[h2]setPackageName(String packageName)

Method

ComponentInfo.prototype.setPackageName = function (String packageName) {

设置应用包名。

Parameters

Name

Description

packageName

应用包名。

[h2]setClassName(String className)

Method

ComponentInfo.prototype.setClassName = function (String className) {

设置运动中的页面信息。

Parameters

Name

Description

className

运动中的页面信息。

[h2]setAppType(String appType)

Method

ComponentInfo.prototype.setAppType = function (String appType) {

设置应用类型。

Parameters

Name

Description

appType

应用类型。