1/* 2 * Copyright (c) 2023 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 16/** 17 * @file 18 * @kit BasicServicesKit 19 */ 20 21/** 22 * class of wallpaper extension ability. 23 * 24 * @syscap SystemCapability.MiscServices.Wallpaper 25 * @systemapi Hide this for inner system use. 26 * @StageModelOnly 27 * @since 10 28 */ 29declare class WallpaperExtensionAbility { 30 /** 31 * Called once to initialize the extension ability. 32 * 33 * @param { object } want - Indicates connection information about the wallpaper extension ability. 34 * @syscap SystemCapability.MiscServices.Wallpaper 35 * @systemapi Hide this for inner system use. 36 * @StageModelOnly 37 * @since 10 38 */ 39 onCreate(want: object): void; 40 41 /** 42 * The onWallpaperChange callback is triggered when the user modifies the wallpaper settings. 43 * 44 * @param { number } wallpaperType - Indicates the wallpaper type. 45 * @syscap SystemCapability.MiscServices.Wallpaper 46 * @systemapi Hide this for inner system use. 47 * @StageModelOnly 48 * @since 10 49 */ 50 onWallpaperChange(wallpaperType: number): void; 51 52 /** 53 * Called once to destroy the extension ability. 54 * 55 * @syscap SystemCapability.MiscServices.Wallpaper 56 * @systemapi Hide this for inner system use. 57 * @StageModelOnly 58 * @since 10 59 */ 60 onDestroy(): void; 61} 62 63export default WallpaperExtensionAbility; 64