Home
last modified time | relevance | path

Searched refs:isAppRunning (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/
H A Djs-apis-app-ability-appManager.md640 ## appManager.isAppRunning<sup>14+</sup>
642 isAppRunning(bundleName: string, appCloneIndex?: number): Promise\<boolean>
683 appManager.isAppRunning(bundleName).then((data: boolean) => {
686 hilog.error(0x0000, 'testTag', `isAppRunning error, code: ${err.code}, msg:${err.message}`);
689 hilog.error(0x0000, 'testTag', `isAppRunning error, code: ${err.code}, msg:${err.message}`);
H A Derrorcode-ability.md756 2.调用isAppRunning是,入参appCloneIndex是一个无效值,则返回该错误码。
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/
H A Djs-apis-app-ability-appManager.md640 ## appManager.isAppRunning<sup>14+</sup>
642 isAppRunning(bundleName: string, appCloneIndex?: number): Promise\<boolean>
683 appManager.isAppRunning(bundleName).then((data: boolean) => {
686 hilog.error(0x0000, 'testTag', `isAppRunning error, code: ${err.code}, msg:${err.message}`);
689 hilog.error(0x0000, 'testTag', `isAppRunning error, code: ${err.code}, msg:${err.message}`);
H A Derrorcode-ability.md756 2. **isAppRunning()** is called, with **appCloneIndex** set to an invalid value.
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dfree_install_manager.cpp637 bool isAppRunning = appMgr->GetAppRunningStateByBundleName(want.GetElement().GetBundleName()); in SetAppRunningState() local
638 TAG_LOGI(AAFwkTag::FREE_INSTALL, "isAppRunning=%{public}d.", static_cast<int>(isAppRunning)); in SetAppRunningState()
639 want.SetParam(KEY_IS_APP_RUNNING, isAppRunning); in SetAppRunningState()