pub unsafe extern "C" fn OH_NativeArkWeb_RegisterJavaScriptProxy(
webTag: *const c_char,
objName: *const c_char,
methodList: *mut *const c_char,
callback: *mut NativeArkWeb_OnJavaScriptProxyCallback,
size: i32,
needRefresh: bool,
)Available on crate feature
api-11 only.Expand description
Registers the JavaScript object and method list.
ยงArguments
-
webTag- The name of the web component. -
objName- The name of the registered object. -
methodList- The method of the application side JavaScript object participating in the registration. -
callback- The callback function registered by developer is called back when HTML side uses. -
size- The size of the callback. -
needRefresh- if web need refresh.
Required System Capabilities: SystemCapability.Web.Webview.Core
Available since API-level: 11