跳到主要内容

运行应用程序(app.run)

函数

启动是否完成 = app.run(应用程序bundelId)

参数

  • 应用程序bundelId 文本型

返回值

  • 运行结果 布尔型

    成功返回 true 失败返回 false

说明

用于启动一个应用程序, 在巨魔环境中 应当避免使用这个函数, 原因(猜)

示例

local res = app.run("com.ss.iphone.ugc.aweme.lite")
sys.msleep(1000)
assert(res ,"app启动失败.")