openharmony 鸿蒙 arkts-basic-components-web-SslErrorHandler

2026-08-25 浏览 (1)

Class (SslErrorHandler)

Implements an SslErrorHandler object to handle SSL error notification events returned by the Web component. For details about the sample code, see the onSslErrorEvent event.

NOTE

  • The initial APIs of this component are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.

  • The initial APIs of this class are supported since API version 9.

  • The sample effect is subject to the actual device.

constructor9+

constructor()

Constructs a SslErrorHandler object.

System capability: SystemCapability.Web.Webview.Core

handleCancel9+

handleCancel(): void

Cancels this request.

System capability: SystemCapability.Web.Webview.Core

handleConfirm9+

handleConfirm(): void

Continues using the SSL certificate.

System capability: SystemCapability.Web.Webview.Core

handleCancel20+

handleCancel(abortLoading: boolean): void

Cancels this request and determines whether to stop loading based on the abortLoading parameter.

System capability: SystemCapability.Web.Webview.Core

Parameters

NameTypeMandatoryDescription
abortLoadingbooleanYesWhether to stop loading the page after the request is canceled.
The value true means to stop loading the page, and false means to continue loading the page.
The default value is false.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 arkts-apis-webview-WebviewController

openharmony 鸿蒙 arkts-apis-webview-t

openharmony 鸿蒙 arkts-apis-webview

openharmony 鸿蒙 capi-arkweb-type-h

openharmony 鸿蒙 arkts-basic-components-web-FullScreenExitHandler

openharmony 鸿蒙 arkts-apis-webview-WebDownloadManager

openharmony 鸿蒙 arkts-basic-components-web-VerifyPinHandler

openharmony 鸿蒙 capi-web-arkweb-webmessage8h

openharmony 鸿蒙 arkts-apis-webview-NativeMediaPlayerHandler

openharmony 鸿蒙 capi-web-arkweb-proxymethodwithresult

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/9qkZJZGP