ArkTS Cross-Language Interaction
In addition to using ArkTS for development, you can also 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 provide enhanced features for more flexible ArkTS interactions and custom object creation. You can also refer to Node-API Development Specifications and Node-API FAQs when developing cross-language features using extended Node-API capabilities.