interface_sdk-js/api/application/MultiAppMode.d.ts
yangxuguang-huawei 574cf99e6a feat: multi-instance API
Signed-off-by: yangxuguang-huawei <yangxuguang3@huawei.com>
2024-09-12 17:19:30 +08:00

59 lines
1.4 KiB
TypeScript

/*
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"),
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @kit AbilityKit
*/
/**
* Type of app multi app mode.
* @enum { number }
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
* @systemapi
* @stagemodelonly
* @since 12
*/
export enum MultiAppMode {
/**
* Indicates the type of not support app multi instance.
*
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
* @systemapi
* @stagemodelonly
* @since 12
*/
NOT_SUPPORTED = 0,
/**
* Indicates the type of multi instance.
*
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
* @systemapi
* @stagemodelonly
* @since 14
*/
MULTI_INSTANCE = 1,
/**
* Indicates the type of app clone.
*
* @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
* @systemapi
* @stagemodelonly
* @since 12
*/
APP_CLONE = 2
}