harmony 鸿蒙ArkTS Cross-Language Interaction

  • 2025-06-06
  • 浏览 (3)

ArkTS Cross-Language Interaction

In addition to supporting development with ArkTS, you can use Node-API to implement cross-language interaction between ArkTS and C/C++ (native).

OpenHarmony Node-API is an extended version of Node API in the Node.js community but does not fully align with it.

In the Node-API development process, you can use the data types supported by Node-API and available APIs to develop and encapsulate native capabilities. By importing the native module in ArkTS, cross-language interaction can be achieved.

Node-API extension APIs further extends the functionalities of Node-API by providing additional interfaces for more flexible interactions and customizations with ArkTS within the Node-API module. These interfaces can be used in scenarios such as creating custom ArkTS objects. You can also refer to Node-API Development Specifications and Node-API FAQs to efficiently develop cross-language features.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkTS

harmony 鸿蒙Configuring arkOptions in build-profile.json5

harmony 鸿蒙Asynchronous Lock

harmony 鸿蒙Ark Bytecode File Format

harmony 鸿蒙Naming Conventions for Ark Bytecode Functions

harmony 鸿蒙Ark Bytecode Fundamentals

harmony 鸿蒙Overview of Ark Bytecode

harmony 鸿蒙Shared Container

harmony 鸿蒙Asynchronous Waiting

harmony 鸿蒙Dynamic Import

0  赞