1/** 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import { CommonConstants } from '@ohos/common'; 17 18const presetDockItem = [ 19 { 20 itemType: CommonConstants.TYPE_FUNCTION, 21 iconId: $r('app.media.ic_allapps'), 22 labelId: $r('app.string.dock_all_app_entry'), 23 bundleName: CommonConstants.LAUNCHER_BUNDLE, 24 abilityName: CommonConstants.APPCENTER_ABILITY, 25 moduleName: CommonConstants.MODULE_NAME, 26 editable: false 27 }, 28 { 29 itemType: CommonConstants.TYPE_FUNCTION, 30 iconId: $r('app.media.ic_multitask'), 31 labelId: $r('app.string.dock_recents_entry'), 32 bundleName: CommonConstants.LAUNCHER_BUNDLE, 33 abilityName: CommonConstants.RECENT_ABILITY, 34 moduleName: CommonConstants.MODULE_NAME, 35 editable: false 36 }, 37 { 38 itemType: CommonConstants.TYPE_APP, 39 bundleName: 'com.ohos.photos', 40 abilityName: 'com.ohos.photos.MainAbility', 41 moduleName: 'entry', 42 editable: true 43 }, 44 { 45 itemType: CommonConstants.TYPE_APP, 46 bundleName: 'com.ohos.settings', 47 abilityName: 'com.ohos.settings.MainAbility', 48 moduleName: 'phone', 49 editable: false 50 } 51]; 52 53export default presetDockItem;