Skip to main content

OH_ArkWeb_RegisterScrollCallback

Function OH_ArkWeb_RegisterScrollCallback 

Source
pub unsafe extern "C" fn OH_ArkWeb_RegisterScrollCallback(
    webTag: *const c_char,
    callback: ArkWeb_OnScrollCallback,
    userData: *mut c_void,
) -> bool
Available on crate features api-11 and api-12 and api-18 only.
Expand description

Register a scrolling event callback.

§Arguments

  • webTag - The name of the web component.

  • callback - The ArkWeb scrolling callback.

  • userData - The data set by user.

§Returns

  • Returns whether the registration was successful, false indicates failure.

Required System Capabilities: SystemCapability.Web.Webview.Core

Available since API-level: 18