1/* 2 * Copyright (c) 2024 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 21import { Content } from './Content'; 22import { FrameNode } from './FrameNode'; 23 24/** 25 * NodeContent is the entity encapsulation of the node content. 26 * 27 * @extends Content 28 * @syscap SystemCapability.ArkUI.ArkUI.Full 29 * @crossplatform 30 * @atomicservice 31 * @since 12 32 */ 33export class NodeContent extends Content{ 34 /** 35 * constructor 36 * 37 * @syscap SystemCapability.ArkUI.ArkUI.Full 38 * @crossplatform 39 * @atomicservice 40 * @since 12 41 */ 42 constructor(); 43 44 /** 45 * Add FrameNode to NodeContent based on parameters. 46 * 47 * @param { FrameNode } node - Newly added FrameNode. 48 * @syscap SystemCapability.ArkUI.ArkUI.Full 49 * @crossplatform 50 * @atomicservice 51 * @since 12 52 */ 53 addFrameNode(node: FrameNode): void; 54 55 /** 56 * Delete FrameNode based on the NodeContent parameter. 57 * 58 * @param { FrameNode } node - FrameNode deleted. 59 * @syscap SystemCapability.ArkUI.ArkUI.Full 60 * @crossplatform 61 * @atomicservice 62 * @since 12 63 */ 64 removeFrameNode(node: FrameNode): void; 65} 66