1/* 2 * Copyright (c) 2024 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 StartupListener from './@ohos.app.appstartup.StartupListener'; 17 18/** 19 * @file 20 * @kit AbilityKit 21 */ 22 23/** 24 * The interface of configuration for running startup tasks. 25 * 26 * @interface StartupConfig 27 * @syscap SystemCapability.Ability.AppStartup 28 * @stagemodelonly 29 * @since 12 30 */ 31export default interface StartupConfig { 32 /** 33 * Indicates timeout for executing all startup tasks. Default value is 10000 milliseconds. 34 * 35 * @type { ?number } 36 * @default 10000 37 * @syscap SystemCapability.Ability.AppStartup 38 * @stagemodelonly 39 * @since 12 40 */ 41 timeoutMs?: number; 42 43 /** 44 * Indicates a listener for startup, which will be called when all tasks complete. 45 * 46 * @type { ?StartupListener } 47 * @syscap SystemCapability.Ability.AppStartup 48 * @stagemodelonly 49 * @since 12 50 */ 51 startupListener?: StartupListener; 52} 53