diff --git a/api/@ohos.arkui.UIContext.d.ts b/api/@ohos.arkui.UIContext.d.ts index 609d28f2e69ff2aeef7ea31ff4725ac342a4eee6..d1fda32732ee8ab52980a2995ea4bdf54f0eafad 100644 --- a/api/@ohos.arkui.UIContext.d.ts +++ b/api/@ohos.arkui.UIContext.d.ts @@ -3685,6 +3685,28 @@ export class UIContext { * @since 16 */ enableSwipeBack(enabled: Optional): void; + + /** + * Sets the component freezing flag based on the component id to prevent the + * UI component from marking and updating dirty areas. + * + * @throws { BusinessError } 202 - The caller is not a system application. + * @syscap SystemCapability.ArkUI.Full + * @systemapi + * @since 16 + */ + freezeUINode(id: string, isFreeze: boolean): void; + + /** + * Sets the component freezing flag based on the component uniqueId to prevent the + * UI component from marking and updating dirty areas. + * + * @throws { BusinessError } 202 - The caller is not a system application. + * @syscap SystemCapability.ArkUI.Full + * @systemapi + * @since 16 + */ + freezeUINode(uniqueId: number, isFreeze: boolean): void; } /**