diff --git a/api/@internal/component/ets/effect_component.d.ts b/api/@internal/component/ets/effect_component.d.ts index a8bb405d41494195212128469ca86a40ed79fb9e..009e9398dffbb247df941b47cf2019a98ba02c3b 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; } /**