# isExist
检测是否存在某个app。
android:传入包名 *eg: bingo.touch.debugger*
ios:urlSchemes *eg: wexin://*
# 输入
继承标准对象输入,扩展属性描述
| 名称 | 数据类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
| appId | string | 是 | 应用Id或者url scheme |
# 输出
继承标准对象输出,无扩展属性
# 示例代码
app.isExist("bingo.touch.debugger",function(res){
if(res){
app.hint("存在appId为bingo.touch.debugger的应用!");
}else{
app.hint("不存在appId为bingo.touch.debugger应用!")
}
});
← ocrRecognize install →