From f34a7169df7ed5f0b269c2f3d350dac0a16a173b Mon Sep 17 00:00:00 2001 From: zhanghang Date: Tue, 12 Aug 2025 15:58:33 +0800 Subject: [PATCH] full screen launch component arkts1.2 Signed-off-by: zhanghang --- ...ced.FullScreenLaunchComponent.static.d.ets | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/api/@ohos.arkui.advanced.FullScreenLaunchComponent.static.d.ets b/api/@ohos.arkui.advanced.FullScreenLaunchComponent.static.d.ets index 2e3a1a3ba4..486ba8fbc3 100644 --- a/api/@ohos.arkui.advanced.FullScreenLaunchComponent.static.d.ets +++ b/api/@ohos.arkui.advanced.FullScreenLaunchComponent.static.d.ets @@ -21,6 +21,7 @@ import AtomicServiceOptions from '@ohos.app.ability.AtomicServiceOptions'; import { Callback, ErrorCallback } from '@ohos.base'; +import { Component, BuilderParam, TerminationInfo, Builder } from '@ohos.arkui.component' /** * Defines RecordData. @@ -31,7 +32,16 @@ import { Callback, ErrorCallback } from '@ohos.base'; * @arkts 1.2 */ export type RecordData = undefined | null | Object | Record | Array; - +/** + * Defines ContentBuilder. + * + * @typedef { function } ContentBuilder + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + * @arkts 1.2 + */ +@Builder +type ContentBuilder = () => void; /** * Declares the FullScreenLaunchComponent, a component provided by ArkUI that allows * you to define and use it in your application through the ArkTS-based declarative @@ -44,11 +54,11 @@ export type RecordData = undefined | null | Object | Record export declare struct FullScreenLaunchComponent { /** * Sets the component content. - * @type { Callback } + * @type { content: () => void } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @BuilderParam content: Callback; + @BuilderParam content: ContentBuilder; /** * Indicates atomic service appId. * @type { string } @@ -88,4 +98,11 @@ export declare struct FullScreenLaunchComponent { * @since 20 */ onReceive?: Callback>; + + /** + * The method to build component. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 20 + */ + @Builder build(): void; } \ No newline at end of file -- Gitee