From a30ab2ce96105acf55e543df1681770aa9038492 Mon Sep 17 00:00:00 2001 From: yangfan229 Date: Thu, 5 Jun 2025 10:55:27 +0800 Subject: [PATCH] independentLayer Signed-off-by: yangfan229 Change-Id: Iba01c088a0018d67b925c91faf5bb184009a1e54 --- .../component/ets/effect_component.d.ts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/api/@internal/component/ets/effect_component.d.ts b/api/@internal/component/ets/effect_component.d.ts index a8bb405d41..009e9398df 100644 --- a/api/@internal/component/ets/effect_component.d.ts +++ b/api/@internal/component/ets/effect_component.d.ts @@ -37,6 +37,37 @@ interface EffectComponentInterface { * @since 10 */ (): EffectComponentAttribute; + + /** + * Return effectComponent with options. + * + * @returns { EffectComponentAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + */ + (options?: EffectComponentOptions): EffectComponentAttribute; +} + +/** + * Defines the Effect Component constructor functions. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + */ +declare interface EffectComponentOptions { + + /** + * Use this to determine the component layer level. Set true to put the component to the independent layer. Set false + * to put the component to the unified render layer. Default value is false. + * + * @type { boolean } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + */ + independentLayer?: boolean; } /** -- Gitee