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