Skip to main content

OH_ArkWebResourceHandler_DidFailWithError

Function OH_ArkWebResourceHandler_DidFailWithError 

Source
pub unsafe extern "C" fn OH_ArkWebResourceHandler_DidFailWithError(
    resourceHandler: *const ArkWeb_ResourceHandler,
    errorCode: ArkWeb_NetError,
) -> i32
Available on crate features api-11 and api-12 only.
Expand description

Notify the ArkWeb that this request should be failed.

§Arguments

  • resourceHandler - The ArkWeb_ResourceHandler for the request.

  • errorCode - The error code for this request. Refer to arkweb_net_error_list.h.

§Returns

  • [ARKWEB_NET_OK] 0 - Success. [ARKWEB_INVALID_PARAM] 17100101 - Invalid param.

Required System Capabilities: SystemCapability.Web.Webview.Core

Available since API-level: 12