Skip to main content

OH_NativeArkWeb_SetJavaScriptProxyValidCallback

Function OH_NativeArkWeb_SetJavaScriptProxyValidCallback 

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

Registers the valid callback.

ยงArguments

  • webTag - The name of the web component.

  • callback - The callback in which we can register object.

Required System Capabilities: SystemCapability.Web.Webview.Core

Available since API-level: 11