Skip to main content

OH_ArkWebHttpBodyStream_Init

Function OH_ArkWebHttpBodyStream_Init 

Source
pub unsafe extern "C" fn OH_ArkWebHttpBodyStream_Init(
    httpBodyStream: *mut ArkWeb_HttpBodyStream,
    initCallback: ArkWeb_HttpBodyStreamInitCallback,
) -> i32
Available on crate features api-11 and api-12 only.
Expand description

Init the http body stream.

This function must be called before calling any other functions.

§Arguments

  • httpBodyStream - The ArkWeb_HttpBodyStream.

  • initCallback - The callback of init.

§Returns

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

Required System Capabilities: SystemCapability.Web.Webview.Core

Available since API-level: 12