Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 2.18 KB

LaunchApp.md

File metadata and controls

76 lines (51 loc) · 2.18 KB

LaunchApp

Kind: global class

new LaunchApp(appName, packageName, deepLink)

LaunchApp构造函数

Param Type Description
appName string 应用的名称
packageName string 应用的包名
deepLink string 打开应用指定功能 注意:以上appName,packageName和deepLink三个参数至少一个

launchApp.setToken(token)

设置directive的token. 默认在构造时自动生成了token,可以覆盖

Kind: instance method of LaunchApp

Param Type Description
token string token

launchApp.getToken() ⇒ string

获取directive的token. 默认在构造时自动生成了token

Kind: instance method of LaunchApp
Returns: string - token

launchApp.setAppName(appName)

设置应用的名称

Kind: instance method of LaunchApp

Param Type Description
appName string 应用的名称

launchApp.setPackageName(packageName)

设置应用的包名

Kind: instance method of LaunchApp

Param Type Description
packageName string 应用的包名

launchApp.setDeepLink(deepLink)

设置deepLink

Kind: instance method of LaunchApp

Param Type Description
deepLink string 应用指定功能