harmony 鸿蒙ArkTS Cross-Language Interaction
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 鸿蒙Configuring arkOptions in build-profile.json5
harmony 鸿蒙Ark Bytecode File Format
harmony 鸿蒙Naming Conventions for Ark Bytecode Functions
harmony 鸿蒙Ark Bytecode Fundamentals
harmony 鸿蒙Overview of Ark Bytecode
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦