diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 5bda02cc64879f36d6dc6cd27000d08ae77c4136..e493e87690b15189da20ee88382e215dae210e9a 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -610,7 +610,8 @@ declare enum MixedMode { * @param { ThreatType } threatType - callback information of onSafeBrowsingCheckResult. * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ type OnSafeBrowsingCheckResultCallback = (threatType: ThreatType) => void; @@ -1023,7 +1024,8 @@ declare enum WebCaptureMode { * @enum { number } * @syscap SystemCapability.Web.Webview.Core * @atomicservice - * @since 11 + * @since arkts {'1.1':'11', '1.2':'20'} + * @arkts 1.1&1.2 */ declare enum ThreatType { /** @@ -10123,6 +10125,20 @@ declare class WebAttribute extends CommonMethod { */ onSafeBrowsingCheckResult(callback: OnSafeBrowsingCheckResultCallback): WebAttribute; + /** + * Triggered when the website security risk check is completed. + *

API Note:
+ * Unlike onSafeBrowsingCheckResult, which is only triggered when a URL has security risks, onSafeBrowsingCheckFinish + * is also triggered when the website security risk check is not performed or no risks are found. + * + * @param { OnSafeBrowsingCheckResultCallback } callback - Triggered when received website security risk check result. + * @returns { WebAttribute } + * @syscap SystemCapability.Web.Webview.Core + * @since 21 + * @arkts 1.1&1.2 + */ + onSafeBrowsingCheckFinish(callback: OnSafeBrowsingCheckResultCallback): WebAttribute; + /** * Called when the load committed. *