harmony 鸿蒙ArkWeb_ComponentAPI
ArkWeb_ComponentAPI
Overview
Defines a native component API.
Since: 12
Related module: Web
Summary
Member Variables
Name | Description |
---|---|
size_t size | The size of a struct. |
void(* onControllerAttached )(const char *webTag, ArkWeb_OnComponentCallback callback, void *userData) | Callback triggered when a controller is attached to the web component. |
void(* onPageBegin )(const char *webTag, ArkWeb_OnComponentCallback callback, void *userData) | Callback triggered when the web page starts to be loaded. This callback is called only for the main frame content, and not for the iframe or frameset content. |
void(* onPageEnd )(const char *webTag, ArkWeb_OnComponentCallback callback, void *userData) | Callback triggered when the web page loading is complete. This callback is triggered only for the main frame content. |
void(* onDestroy )(const char *webTag, ArkWeb_OnComponentCallback callback, void *userData) | Callback triggered when this web component is destroyed. |
Member Variable Description
onControllerAttached
void(* ArkWeb_ComponentAPI::onControllerAttached) (const char *webTag, ArkWeb_OnComponentCallback callback, void *userData)
Description
Callback triggered when a controller is attached to the web component.
onDestroy
void(* ArkWeb_ComponentAPI::onDestroy) (const char *webTag, ArkWeb_OnComponentCallback callback, void *userData)
Description
Callback triggered when this web component is destroyed.
onPageBegin
void(* ArkWeb_ComponentAPI::onPageBegin) (const char *webTag, ArkWeb_OnComponentCallback callback, void *userData)
Description
Callback triggered when the web page starts to be loaded. This callback is called only for the main frame content, and not for the iframe or frameset content.
onPageEnd
void(* ArkWeb_ComponentAPI::onPageEnd) (const char *webTag, ArkWeb_OnComponentCallback callback, void *userData)
Description
Callback triggered when the web page loading is complete. This callback is triggered only for the main frame content.
size
size_t ArkWeb_ComponentAPI::size
Description
The size of a struct.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ArkWeb API Reference
harmony 鸿蒙ArkWeb_ControllerAPI
harmony 鸿蒙ArkWeb_CookieManagerAPI
harmony 鸿蒙ArkWeb_JavaScriptBridgeData
harmony 鸿蒙ArkWeb_JavaScriptObject
harmony 鸿蒙ArkWeb_JavaScriptValueAPI
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦