From e0317e4c29c819bab8b2ce5bc56befa3695aae2f Mon Sep 17 00:00:00 2001 From: wanglili12 Date: Tue, 8 Jul 2025 22:07:23 +0800 Subject: [PATCH] update api describe Signed-off-by: wanglili12 --- api/@ohos.arkui.UIContext.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/api/@ohos.arkui.UIContext.d.ts b/api/@ohos.arkui.UIContext.d.ts index b90219797d..1ca9452556 100644 --- a/api/@ohos.arkui.UIContext.d.ts +++ b/api/@ohos.arkui.UIContext.d.ts @@ -4423,6 +4423,20 @@ export declare class UIContext { * @arkts 1.2 */ setUIStates(callback: VoidCallback): void; + + /** + * Retrieves the UIContext corresponding to the UI instance of the currently focused window. + * Returns undefined if it does not exist. + * + * @returns { UIContext | undefined } The focused UIContext, or undefined if it does not exist. + * @static + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + static getFocusedUIContext(): UIContext | undefined; } /** -- Gitee