Home
last modified time | relevance | path

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

/ohos5.0/foundation/ability/ability_runtime/frameworks/js/napi/app/application_context/
H A Dapplication_context.js200 getCurrentAppCloneIndex() { method in ApplicationContext
201 return this.__context_impl__.getCurrentAppCloneIndex();
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/
H A Derrorcode-ability.md716 在不支持应用分身的应用中调用getCurrentAppCloneIndex时,则返回该错误码。
720 在不支持应用分身的应用中,避免调用getCurrentAppCloneIndex
739 调用getCurrentAppCloneIndex时确保查询的应用支持应用多开。
H A Djs-apis-inner-application-applicationContext.md913 ## ApplicationContext.getCurrentAppCloneIndex<sup>12+</sup>
915 getCurrentAppCloneIndex(): number
947 let appCloneIndex = applicationContext.getCurrentAppCloneIndex();
949 console.error(`getCurrentAppCloneIndex fail, error: ${JSON.stringify(error)}`);
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/
H A Djs-apis-inner-application-applicationContext.md913 ## ApplicationContext.getCurrentAppCloneIndex<sup>12+</sup>
915 getCurrentAppCloneIndex(): number
947 let appCloneIndex = applicationContext.getCurrentAppCloneIndex();
949 console.error(`getCurrentAppCloneIndex fail, error: ${JSON.stringify(error)}`);
H A Derrorcode-ability.md716 An application that does not support clones calls **getCurrentAppCloneIndex()**.
720 Avoid calling **getCurrentAppCloneIndex()** in applications that do not support clones.
739 When calling **getCurrentAppCloneIndex()**, ensure that the application supports the multi-app mode.