From 09405eaf0a60f5d8394e39f62ee40c5afa48f5a1 Mon Sep 17 00:00:00 2001 From: xpeng Date: Mon, 27 Jun 2022 16:08:50 +0800 Subject: [PATCH] update name Signed-off-by: xpeng Change-Id: I6efe561eb82a9b7be00c6fa5f9a9db4b74de65b0 --- api/@ohos.window.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 0849c93a1f..aded7ac14a 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -788,20 +788,20 @@ declare namespace window { setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise; /** - * Set the requested orientation config of the window + * Set the preferred orientation config of the window * @param orientation the orientation config of the window * @syscap SystemCapability.WindowManager.WindowManager.Core * @since 9 */ - setRequestedOrientation(orientation: Orientation): Promise; + setPreferredOrientation(orientation: Orientation): Promise; /** - * Set the requested orientation config of the window + * Set the preferred orientation config of the window * @param orientation the orientation config of the window * @syscap SystemCapability.WindowManager.WindowManager.Core * @since 9 */ - setRequestedOrientation(orientation: Orientation, callback: AsyncCallback): void; + setPreferredOrientation(orientation: Orientation, callback: AsyncCallback): void; /** * Loads content -- Gitee