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