From 11ce1a596a1f9f1935b619ea1a30e665cb5bc747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=81=92?= Date: Tue, 17 Jun 2025 14:20:53 +0800 Subject: [PATCH] =?UTF-8?q?onTitleReceive=E6=96=B9=E6=B3=95=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E8=BF=94=E5=9B=9Etitle=E6=9D=A5=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张恒 --- api/@internal/component/ets/web.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index a9ae6f34ca..f73d92d31b 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -5605,6 +5605,16 @@ declare interface OnTitleReceiveEvent { * @since 12 */ title: string; + + /** + * Mark the source of the title. If it is true, the title is derived from the H5 title element; + * If it is false, it is calculated from the URL. By default, it is calculated from the URL. + * + * @type { ?boolean } + * @syscap SystemCapability.Web.Webview.Core + * @since 20 + */ + isRealTitle?: boolean; } /** -- Gitee