• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# MultiAppMode (System API)
2
3The module defines whether an application supports the multi-app mode.
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 12. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8>
9> The APIs of this module can be used only in the stage model.
10>
11> The APIs provided by this module are system APIs.
12
13## How to Use
14
15The **MultiAppMode** property is obtained from [getRunningMultiAppInfo](js-apis-app-ability-appManager-sys.md#appmanagergetrunningmultiappinfo12) of **appManager**.
16
17## MultiAppMode
18
19**System API**: This is a system API.
20
21**System capability**: SystemCapability.Ability.AbilityRuntime.Core
22
23| Name| Value|Description|
24| -------- |----|-------- |
25| NOT_SUPPORTED | 0 | The application does not support the multi-app mode.|
26| MULTI_INSTANCE<sup>14+</sup>  | 1 | The application supports the multi-instance mode.<br>Note: This property is valid only for 2-in-1 devices. |
27| APP_CLONE | 2 | The application supports the app-clone mode.|
28