diff --git a/api/arkui/BuilderNode.d.ts b/api/arkui/BuilderNode.d.ts index 441ef614f3c06d2f549f4a55055d0dc254c41c33..acd1743cdb1154a0a9f1da27e3db9ccc935d36c6 100644 --- a/api/arkui/BuilderNode.d.ts +++ b/api/arkui/BuilderNode.d.ts @@ -527,4 +527,16 @@ export class BuilderNode { * @since 20 */ postInputEvent(event: InputEventType): boolean; + + /** + * Set if the BuilderNode inherits the freezing policy of the parent CustomComponent, ComponentContent, or BuilderNode. + * + * @param { boolean } enabled - If the BuilderNode inherits the freezing policy of the parent CustomComponent, ComponentContent, or BuilderNode. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + inheritFreezeOptions(enabled: boolean): void; } diff --git a/api/arkui/ComponentContent.d.ts b/api/arkui/ComponentContent.d.ts index 527d4fcbf159ddd812d4233e822adae103a63aa3..152639f71ee6cb8a6dbe621602dba1d24373d2f3 100644 --- a/api/arkui/ComponentContent.d.ts +++ b/api/arkui/ComponentContent.d.ts @@ -124,4 +124,16 @@ export class ComponentContent extends Content{ * @since 12 */ updateConfiguration(): void; + + /** + * Set if the ComponentContent inherits the freezing policy of the parent CustomComponent, ComponentContent, or BuilderNode. + * + * @param { boolean } enabled - If the ComponentContent inherits the freezing policy of the parent CustomComponent, ComponentContent, or BuilderNode. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.1&1.2 + */ + inheritFreezeOptions(enabled: boolean): void; }