pub unsafe extern "C" fn OH_ArkWebResourceHandler_DidFailWithErrorV2(
resourceHandler: *const ArkWeb_ResourceHandler,
errorCode: ArkWeb_NetError,
completeIfNoResponse: bool,
) -> i32Available on crate features
api-11 and api-12 and api-20 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. -
completeIfNoResponse- If completeIfNoResponse is true, when DidFailWithErrorV2 is called, if DidReceiveResponse has not been called, a response is automatically constructed and the current request is terminated.
§Returns
- [
ARKWEB_NET_OK] 0 - Success. [ARKWEB_INVALID_PARAM] 17100101 - Invalid param, the resourceHandler is nullptr.
Available since API-level: 20