From 329a21e3ab48cd9f19220192f63b36f0925b6f32 Mon Sep 17 00:00:00 2001 From: wzztoone Date: Mon, 14 Feb 2022 16:01:25 +0800 Subject: [PATCH] change onGeolocationShow event Signed-off-by: wzztoone Change-Id: I3b0a5a5c355f152000505351b3862cf5c8c972b7 --- api/@internal/component/ets/web.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index ff7e3fdaae..9a2bc77c77 100755 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -379,9 +379,13 @@ declare class WebAttribute extends CommonMethod { /** * Triggered when notifies the host application that web content from the specified source is attempting to use the Geolocation API + * + * @param origin The origin that ask for the geolocation permission. + * @param allow The geolocation permission status. + * @param retain Whether to allow the geolocation permission status to be saved to the system. * @since 8 */ - onGeolocationShow(callback: (event?: { origin: string, callback: Function }) => void): WebAttribute; + onGeolocationShow(callback: (event?: { origin: string, allow: boolean, retain: boolean }) => void): WebAttribute; /** * Get WebView focus callback event -- Gitee