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 ArkUI 19 */ 20 21/** 22 * Defines the session of RootScene. 23 * 24 * @interface RootSceneSession 25 * @syscap SystemCapability.ArkUI.ArkUI.Full 26 * @systemapi 27 * @since 10 28 */ 29interface RootSceneSession { 30} 31 32/** 33 * Defines the interface of RootScene. 34 * 35 * @interface RootSceneInterface 36 * @syscap SystemCapability.ArkUI.ArkUI.Full 37 * @systemapi 38 * @since 10 39 */ 40interface RootSceneInterface { 41 /** 42 * Called when the RootScene is used. 43 * 44 * @param { RootSceneSession } session - indicates the session of RootScene. 45 * @returns { RootSceneAttribute } 46 * @syscap SystemCapability.ArkUI.ArkUI.Full 47 * @systemapi 48 * @since 10 49 */ 50 (session: RootSceneSession): RootSceneAttribute; 51} 52 53/** 54 * Defines the attribute functions of RootScene. 55 * 56 * @extends CommonMethod<RootSceneAttribute> 57 * @syscap SystemCapability.ArkUI.ArkUI.Full 58 * @systemapi 59 * @since 10 60 */ 61declare class RootSceneAttribute extends CommonMethod<RootSceneAttribute> { 62} 63 64/** 65 * Defines the RootScene component. 66 * 67 * @syscap SystemCapability.ArkUI.ArkUI.Full 68 * @systemapi 69 * @since 10 70 */ 71declare const RootScene: RootSceneInterface; 72 73/** 74 * Defines the RootScene instance. 75 * 76 * @syscap SystemCapability.ArkUI.ArkUI.Full 77 * @systemapi 78 * @since 10 79 */ 80declare const RootSceneInstance: RootSceneAttribute; 81