Skip to main content

OH_NativeArkWeb_SetDestroyCallback

Function OH_NativeArkWeb_SetDestroyCallback 

Source
pub unsafe extern "C" fn OH_NativeArkWeb_SetDestroyCallback(
    webTag: *const c_char,
    callback: NativeArkWeb_OnDestroyCallback,
)
Available on crate feature api-11 only.
Expand description

Registers the destroy callback.

ยงArguments

  • webTag - The name of the web component.

  • callback - the destroy callback.

Required System Capabilities: SystemCapability.Web.Webview.Core

Available since API-level: 11