mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-12-13 10:36:51 +00:00
9924595702
Signed-off-by: yuwenze <yuwenze1@huawei.com> Change-Id: If91ca30239b60455a9655320c9c496be180a81aa
118 lines
2.4 KiB
TypeScript
118 lines
2.4 KiB
TypeScript
/*
|
|
* Copyright (c) 2021-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
|
|
*/
|
|
|
|
/**
|
|
* The ability or extension state data.
|
|
*
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @systemapi
|
|
* @since 8
|
|
*/
|
|
export default class AbilityStateData {
|
|
/**
|
|
* The module name.
|
|
*
|
|
* @type { string }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @systemapi
|
|
* @since 9
|
|
*/
|
|
moduleName: string;
|
|
|
|
/**
|
|
* The bundle name.
|
|
*
|
|
* @type { string }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @systemapi
|
|
* @since 8
|
|
*/
|
|
bundleName: string;
|
|
|
|
/**
|
|
* The ability name.
|
|
*
|
|
* @type { string }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @systemapi
|
|
* @since 8
|
|
*/
|
|
abilityName: string;
|
|
|
|
/**
|
|
* The pid.
|
|
*
|
|
* @type { number }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @systemapi
|
|
* @since 8
|
|
*/
|
|
pid: number;
|
|
|
|
/**
|
|
* The uid.
|
|
*
|
|
* @type { number }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @systemapi
|
|
* @since 8
|
|
*/
|
|
uid: number;
|
|
|
|
/**
|
|
* The application state.
|
|
*
|
|
* @type { number }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @systemapi
|
|
* @since 8
|
|
*/
|
|
state: number;
|
|
|
|
/**
|
|
* The ability type, page or service and so on.
|
|
*
|
|
* @type { number }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @systemapi
|
|
* @since 8
|
|
*/
|
|
abilityType: number;
|
|
|
|
/**
|
|
* Indicates whether the application is atomic service.
|
|
*
|
|
* @type { boolean }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @systemapi
|
|
* @since 12
|
|
*/
|
|
isAtomicService: boolean;
|
|
|
|
/**
|
|
* The app clone index of ability instance.
|
|
* @type { ?number }
|
|
* @syscap SystemCapability.Ability.AbilityRuntime.Core
|
|
* @systemapi
|
|
* @since 12
|
|
*/
|
|
appCloneIndex?: number;
|
|
}
|