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 * Defines the interface of WindowScene. 18 * 19 * @interface WindowSceneInterface 20 * @syscap SystemCapability.ArkUI.ArkUI.Full 21 * @systemapi 22 * @since 10 23 */ 24interface WindowSceneInterface { 25 /** 26 * Called when the WindowScene is used. 27 * 28 * @param { number } persistentId - indicates the persistent identifier of WindowScene. 29 * @returns { WindowSceneAttribute } 30 * @syscap SystemCapability.ArkUI.ArkUI.Full 31 * @systemapi 32 * @since 10 33 */ 34 (persistentId: number): WindowSceneAttribute; 35} 36 37/** 38 * Defines the attribute functions of WindowScene. 39 * 40 * @extends CommonMethod 41 * @syscap SystemCapability.ArkUI.ArkUI.Full 42 * @systemapi 43 * @since 10 44 */ 45declare class WindowSceneAttribute extends CommonMethod<WindowSceneAttribute> { 46} 47 48/** 49 * Defines the WindowScene component. 50 * 51 * @syscap SystemCapability.ArkUI.ArkUI.Full 52 * @systemapi 53 * @since 10 54 */ 55declare const WindowScene: WindowSceneInterface; 56 57/** 58 * Defines the WindowScene instance. 59 * 60 * @syscap SystemCapability.ArkUI.ArkUI.Full 61 * @systemapi 62 * @since 10 63 */ 64declare const WindowSceneInstance: WindowSceneAttribute; 65