• 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
21/*** if arkts 1.2 */
22import { NodeController } from '../../@ohos.arkui.node';
23import { CommonMethod } from './common';
24/*** endif */
25
26/**
27 * Defines the Interface of NodeContainer. To display the node build by an associated NodeController.
28 *
29 * @interface NodeContainerInterface
30 * @syscap SystemCapability.ArkUI.ArkUI.Full
31 * @crossplatform
32 * @since 11
33 */
34/**
35 * Defines the Interface of NodeContainer. To display the node build by an associated NodeController.
36 *
37 * @interface NodeContainerInterface
38 * @syscap SystemCapability.ArkUI.ArkUI.Full
39 * @crossplatform
40 * @atomicservice
41 * @since arkts {'1.1':'12','1.2':'20'}
42 * @arkts 1.1&1.2
43 */
44interface NodeContainerInterface {
45  /**
46  * Constructor parameters
47  *
48  * @param { import('../api/@ohos.arkui.node').NodeController } controller - Indicates the controller of the NodeContainer.
49  * @returns { NodeContainerAttribute }
50  * @syscap SystemCapability.ArkUI.ArkUI.Full
51  * @crossplatform
52  * @since 11
53  */
54 /**
55  * Constructor parameters
56  *
57  * @param { import('../api/@ohos.arkui.node').NodeController } controller - Indicates the controller of the NodeContainer.
58  * @returns { NodeContainerAttribute }
59  * @syscap SystemCapability.ArkUI.ArkUI.Full
60  * @crossplatform
61  * @atomicservice
62  * @since 12
63  */
64  (controller: import('../api/@ohos.arkui.node').NodeController): NodeContainerAttribute;
65  /**
66   * Constructor parameters
67   *
68   * @param { NodeController } controller - Indicates the controller of the NodeContainer.
69   * @returns { NodeContainerAttribute }
70   * @syscap SystemCapability.ArkUI.ArkUI.Full
71   * @crossplatform
72   * @atomicservice
73   * @since 20
74   * @arkts 1.2
75   */
76  (controller: NodeController): NodeContainerAttribute;
77}
78
79/**
80 * Defines the attribute of NodeContainer, extends from CommonMethod.
81 * @extends CommonMethod<NodeContainerAttribute>
82 * @syscap SystemCapability.ArkUI.ArkUI.Full
83 * @crossplatform
84 * @since 11
85 */
86/**
87 * Defines the attribute of NodeContainer, extends from CommonMethod.
88 * @extends CommonMethod<NodeContainerAttribute>
89 * @syscap SystemCapability.ArkUI.ArkUI.Full
90 * @crossplatform
91 * @atomicservice
92 * @since arkts {'1.1':'12','1.2':'20'}
93 * @arkts 1.1&1.2
94 */
95declare class NodeContainerAttribute extends CommonMethod<NodeContainerAttribute> {}
96
97/**
98 * Defines NodeContainer Component.
99 *
100 * @syscap SystemCapability.ArkUI.ArkUI.Full
101 * @crossplatform
102 * @since 11
103 */
104/**
105 * Defines NodeContainer Component.
106 *
107 * @syscap SystemCapability.ArkUI.ArkUI.Full
108 * @crossplatform
109 * @atomicservice
110 * @since 12
111 */
112declare const NodeContainer: NodeContainerInterface;
113
114/**
115 * Defines NodeContainer Component instance.
116 *
117 * @syscap SystemCapability.ArkUI.ArkUI.Full
118 * @crossplatform
119 * @since 11
120 */
121/**
122 * Defines NodeContainer Component instance.
123 *
124 * @syscap SystemCapability.ArkUI.ArkUI.Full
125 * @crossplatform
126 * @atomicservice
127 * @since 12
128 */
129declare const NodeContainerInstance: NodeContainerAttribute;
130