161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit AbilityKit 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ciimport { ApplicationInfo } from './applicationInfo'; 2261847f8eSopenharmony_ciimport { ElementName } from './elementName'; 2361847f8eSopenharmony_ci 2461847f8eSopenharmony_ci/** 2561847f8eSopenharmony_ci * Contains basic Ability information, which uniquely identifies an ability. 2661847f8eSopenharmony_ci * You can use this class to obtain values of the fields set in an AbilityInfo, 2761847f8eSopenharmony_ci * such as the application Info , elementName, labelId, iconId, userId, installTime. 2861847f8eSopenharmony_ci * 2961847f8eSopenharmony_ci * Contains basic launcher Ability information, which uniquely identifies an LauncherAbilityInfo 3061847f8eSopenharmony_ci * 3161847f8eSopenharmony_ci * @typedef LauncherAbilityInfo 3261847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework 3361847f8eSopenharmony_ci * @systemapi Hide this for inner system use 3461847f8eSopenharmony_ci * @since 8 3561847f8eSopenharmony_ci * @deprecated since 9 3661847f8eSopenharmony_ci * @useinstead ohos.bundle.bundleManager.LauncherAbilityInfo 3761847f8eSopenharmony_ci */ 3861847f8eSopenharmony_ciexport interface LauncherAbilityInfo { 3961847f8eSopenharmony_ci /** 4061847f8eSopenharmony_ci * Obtains application info information about an launcher ability. 4161847f8eSopenharmony_ci * 4261847f8eSopenharmony_ci * @type { ApplicationInfo } 4361847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework 4461847f8eSopenharmony_ci * @systemapi Hide this for inner system use 4561847f8eSopenharmony_ci * @since 8 4661847f8eSopenharmony_ci * @deprecated since 9 4761847f8eSopenharmony_ci */ 4861847f8eSopenharmony_ci readonly applicationInfo: ApplicationInfo; 4961847f8eSopenharmony_ci 5061847f8eSopenharmony_ci /** 5161847f8eSopenharmony_ci * Obtains element name about an launcher ability. 5261847f8eSopenharmony_ci * 5361847f8eSopenharmony_ci * @type { ElementName } 5461847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework 5561847f8eSopenharmony_ci * @systemapi Hide this for inner system use 5661847f8eSopenharmony_ci * @since 8 5761847f8eSopenharmony_ci * @deprecated since 9 5861847f8eSopenharmony_ci */ 5961847f8eSopenharmony_ci readonly elementName: ElementName; 6061847f8eSopenharmony_ci 6161847f8eSopenharmony_ci /** 6261847f8eSopenharmony_ci * Obtains labelId about an launcher ability. 6361847f8eSopenharmony_ci * 6461847f8eSopenharmony_ci * @type { number } 6561847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework 6661847f8eSopenharmony_ci * @systemapi Hide this for inner system use 6761847f8eSopenharmony_ci * @since 8 6861847f8eSopenharmony_ci * @deprecated since 9 6961847f8eSopenharmony_ci */ 7061847f8eSopenharmony_ci readonly labelId: number; 7161847f8eSopenharmony_ci 7261847f8eSopenharmony_ci /** 7361847f8eSopenharmony_ci * Obtains iconId about an launcher ability. 7461847f8eSopenharmony_ci * 7561847f8eSopenharmony_ci * @type { number } 7661847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework 7761847f8eSopenharmony_ci * @systemapi Hide this for inner system use 7861847f8eSopenharmony_ci * @since 8 7961847f8eSopenharmony_ci * @deprecated since 9 8061847f8eSopenharmony_ci */ 8161847f8eSopenharmony_ci readonly iconId: number; 8261847f8eSopenharmony_ci 8361847f8eSopenharmony_ci /** 8461847f8eSopenharmony_ci * Obtains userId about an launcher ability. 8561847f8eSopenharmony_ci * 8661847f8eSopenharmony_ci * @type { number } 8761847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework 8861847f8eSopenharmony_ci * @systemapi Hide this for inner system use 8961847f8eSopenharmony_ci * @since 8 9061847f8eSopenharmony_ci * @deprecated since 9 9161847f8eSopenharmony_ci */ 9261847f8eSopenharmony_ci readonly userId: number; 9361847f8eSopenharmony_ci 9461847f8eSopenharmony_ci /** 9561847f8eSopenharmony_ci * Obtains installTime about an launcher ability. 9661847f8eSopenharmony_ci * 9761847f8eSopenharmony_ci * @type { number } 9861847f8eSopenharmony_ci * @syscap SystemCapability.BundleManager.BundleFramework 9961847f8eSopenharmony_ci * @systemapi Hide this for inner system use 10061847f8eSopenharmony_ci * @since 8 10161847f8eSopenharmony_ci * @deprecated since 9 10261847f8eSopenharmony_ci */ 10361847f8eSopenharmony_ci readonly installTime: number; 10461847f8eSopenharmony_ci} 105