diff --git a/api/@ohos.arkui.component.d.ets b/api/@ohos.arkui.component.d.ets index bcc6c826fcbb40ab25e0e4316869cccc560e4340..3602285ab2b51075427136485a337352a9eaec59 100644 --- a/api/@ohos.arkui.component.d.ets +++ b/api/@ohos.arkui.component.d.ets @@ -19,7 +19,6 @@ * @arkts 1.2 */ -export * from './arkui/UserView'; export * from './arkui/component/animation'; export * from './arkui/component/customComponent'; export * from './arkui/component/common'; diff --git a/api/arkui/UserView.d.ets b/api/arkui/UserView.d.ets deleted file mode 100644 index 1daae0d388748bc97e9d7438ce3153bdb558061a..0000000000000000000000000000000000000000 --- a/api/arkui/UserView.d.ets +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @file - * @kit ArkUI - * @arkts 1.2 - */ -import { __memo_context_type, __memo_id_type, memo } from './stateManagement/runtime'; - -export type UserViewBuilder = (__memo_context: __memo_context_type, __memo_id: __memo_id_type) => void; - -export declare class UserView { - getBuilder(): UserViewBuilder; -} - -export declare class EntryPoint { - @memo entry(): void; -} \ No newline at end of file diff --git a/api/arkui/component/customComponent.static.d.ets b/api/arkui/component/customComponent.static.d.ets index de070a0ec342c56e1c9f1313679c32eac0dff5a0..b9e002a20adf2574f6de8dbe1e48ff88f030917e 100644 --- a/api/arkui/component/customComponent.static.d.ets +++ b/api/arkui/component/customComponent.static.d.ets @@ -126,6 +126,23 @@ export @interface ReusableV2 {} @Retention({policy: "SOURCE"}) export @interface CustomLayout {} +/** + * Defining of entry of page + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ +export declare abstract class EntryPoint { + + /** + * Define entry function of page + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + @Builder entry(): void; +} + /** * Defining CustomDialog Annotation * @@ -361,14 +378,13 @@ export interface PageLifeCycle { } /** - * Defining interface of LayoutCallback for custom component, when decorate with @Layoutable. + * Defining interface of LayoutCallbacks for custom component, when decorate with @Layoutable. * + * typedef LayoutCallbacks * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 static */ -export interface LayoutCallback { +export interface LayoutCallbacks { /** * Custom component override this method to layout each of its sub components. * @@ -376,8 +392,6 @@ export interface LayoutCallback { * @param { Array } children * @param { ConstraintSizeOptions } constraint * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 static */ onPlaceChildren(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): void {} @@ -389,8 +403,6 @@ export interface LayoutCallback { * @param { ConstraintSizeOptions } constraint - indicate child constraint size * @returns { SizeResult } * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice * @since 20 static */ onMeasureSize(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): SizeResult {