From 1e77030a49174c5ea52db688478dc4cf0b6bf980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=9B=E4=BA=9A=E8=8A=B3?= Date: Thu, 13 Oct 2022 03:53:47 +0000 Subject: [PATCH] update zh-cn/application-dev/windowmanager/application-window-stage.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 葛亚芳 --- .../windowmanager/application-window-stage.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/zh-cn/application-dev/windowmanager/application-window-stage.md b/zh-cn/application-dev/windowmanager/application-window-stage.md index 3fa18395aa..661d379df7 100644 --- a/zh-cn/application-dev/windowmanager/application-window-stage.md +++ b/zh-cn/application-dev/windowmanager/application-window-stage.md @@ -211,7 +211,7 @@ class MainAbility extends Ability { - 方式三:调用`setLayoutFullScreen`接口,设置应用主窗口为全屏布局;然后调用`setSystemProperties`接口,设置导航栏、状态栏的透明度、背景/文字颜色以及高亮图标等属性,使之保持与主窗口显示协调一致,从而达到沉浸式效果。 3. 加载显示沉浸式窗口的具体内容。 - 通过`loadContent`和`show`接口加载显示沉浸式窗口的具体内容。 + 通过`loadContent`接口加载沉浸式窗口的具体内容。 ```ts import Ability from '@ohos.application.Ability' @@ -280,14 +280,6 @@ class MainAbility extends Ability { return; } console.info('Succeeded in loading the content. Data: ' + JSON.stringify(data)); - // 3.显示沉浸式窗口。 - windowStage.show((err, data) => { - if (err.code) { - console.error('Failed to show the window. Cause:' + JSON.stringify(err)); - return; - } - console.info('Succeeded in showing the window. Data: ' + JSON.stringify(data)); - }); }); } }; -- GitLab