#打卡不停更#HarmonyOS应用API-bundleState.isIdleStat
Api:bundleState.isIdleStat版本适配:API7作用:判断指定bundleName的应用当前是否是空闲状态,三方应用只能查询自身的空闲状态,使用Callback形式返回。示例代码:bundleState.isIdleState("com.ohos.camera",(err,res){if(err){console.log('BUNDLEACTIVEisIdleStatecallbackfailed,because:'+err.code);}else{console.log('BUNDLEACTIVEisIdleStatecallbacksucceeded,result:'+JSON.stringify(res));}});