openharmony 鸿蒙 capi-web-arkweb-javascriptvalueapi

2026-08-25 浏览 (1)

ArkWeb_JavaScriptValueAPI

typedef struct {...} ArkWeb_JavaScriptValueAPI

Overview

Defines the JavaScriptValue API of ArkWeb. Before calling this API, you are advised to use ARKWEB_MEMBER_MISSING to check whether the function struct has the corresponding pointer to avoid crash caused by mismatch between the SDK and the device ROM.

Since: 18

Related module: Web

Header file: arkweb_type.h

Summary

Member Variables

NameDescription
size_t sizeSize of the struct.

Member Functions

NameDescription
ArkWeb_JavaScriptValuePtr (*createJavaScriptValue)(ArkWeb_JavaScriptValueType type, void* data, size_t dataLength)Creates a JavaScript value to be returned to HTML.

Member Function Description

createJavaScriptValue()

ArkWeb_JavaScriptValuePtr (*createJavaScriptValue)(ArkWeb_JavaScriptValueType type, void* data, size_t dataLength)

Description

Creates a JavaScript value to be returned to HTML.

Since: 18

Parameters

NameDescription
ArkWeb_JavaScriptValueType typeType of the JavaScript value.
void* dataPointer to the JavaScript value data.
size_t dataLengthLength of the JavaScript value data.

Returns

TypeDescription
ArkWeb_JavaScriptValuePtrCreated JavaScript value.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 arkts-apis-webview-WebviewController

openharmony 鸿蒙 arkts-apis-webview-t

openharmony 鸿蒙 arkts-apis-webview

openharmony 鸿蒙 capi-arkweb-type-h

openharmony 鸿蒙 arkts-basic-components-web-FullScreenExitHandler

openharmony 鸿蒙 arkts-apis-webview-WebDownloadManager

openharmony 鸿蒙 arkts-basic-components-web-VerifyPinHandler

openharmony 鸿蒙 capi-web-arkweb-webmessage8h

openharmony 鸿蒙 arkts-apis-webview-NativeMediaPlayerHandler

openharmony 鸿蒙 capi-web-arkweb-proxymethodwithresult

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/WePwRWPj