harmony 鸿蒙ArkWeb_ComponentAPI

  • 2025-06-12
  • 浏览 (4)

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_AnyNativeAPI

harmony 鸿蒙ArkWeb_ControllerAPI

harmony 鸿蒙ArkWeb_CookieManagerAPI

harmony 鸿蒙ArkWeb_JavaScriptBridgeData

harmony 鸿蒙ArkWeb_JavaScriptObject

harmony 鸿蒙ArkWeb_JavaScriptValueAPI

harmony 鸿蒙ArkWeb_ProxyMethod

harmony 鸿蒙ArkWeb_ProxyMethodWithResult

harmony 鸿蒙ArkWeb_ProxyObject

0  赞