pub unsafe extern "C" fn OH_ArkWebHttpBodyStream_SetAsyncReadCallback(
httpBodyStream: *mut ArkWeb_HttpBodyStream,
readCallback: ArkWeb_HttpBodyStreamAsyncReadCallback,
) -> i32Available on crate features
api-11 and api-12 and api-20 only.Expand description
Set the callback for OH_ArkWebHttpBodyStream_AsyncRead.
The result of OH_ArkWebHttpBodyStream_AsyncRead will be notified to caller through the
readCallback. The callback will runs in the ArkWeb worker thread.
§Arguments
-
httpBodyStream- The ArkWeb_HttpBodyStream. -
readCallback- The callback of read function.
§Returns
- [
ARKWEB_NET_OK] 0 - Success. [ARKWEB_INVALID_PARAM] 17100101 - Invalid param.
Available since API-level: 20