InHuawei DevelopersbyBünyamin Eymen Alagöz·Jul 10, 2025🔄 Node API Part-4 : Calling an ArkTS Method with Return Value of a Promise Using Node-APIArkTS can handle UI logic, timers, or network calls with its async-first architecture, while C++ can handle low-level tasks and deliver…
InHuawei DevelopersbyBünyamin Eymen Alagöz·Jul 10, 2025🚀Node-API Part-5 : Asynchronous Task Development Using Node-API✨ Calling asynchronous ArkTS Promise-returning functions from C++ using Node-API enables seamless interoperability between native and ArkTS
InHuawei DevelopersbyBünyamin Eymen Alagöz·Jul 10, 2025🔗 Node API Part-6 : Loading a Module in the Main Thread Using Node-API on HarmonyOSNextThis article will walk you through how to safely and efficiently use napi_load_module on the main thread using Node-API.
InHuawei DevelopersbyBünyamin Eymen Alagöz·Jul 10, 2025🎯Node API Part-7 : Creating an ArkTS Runtime in Native Threads Using Node-API on HarmonyOSNextArkTS runtime environments are not created automatically in native threadsA response icon1A response icon1
InHuawei DevelopersbyBünyamin Eymen Alagöz·Jul 10, 2025🚀 Node-API Part-9: Running or Stopping an Event Loop in Asynchronous Threads on HarmonyOSNextIn hybrid HarmonyOS development, it’s not uncommon to encounter scenarios where native C++ components must call asynchronous ArkTS methods…
InHuawei DevelopersbyBünyamin Eymen Alagöz·Jul 10, 2025🚀 Node-API Part-10: Loading ArkTS Modules Dynamically in HarmonyOS Using Node-APIAs HarmonyOS continues to mature, hybrid development — bridging the performance of native C++ with the flexibility of ArkTS (Ark…
InHuawei DevelopersbyBünyamin Eymen Alagöz·Jul 10, 2025Node-API Part-11 : Passing Prioritised Work from Native C++ to ArkTS — a Step‑by‑Step GuideWhen your HarmonyOS NEXT application needs to push work from a C/C++ worker thread back to the ArkTS event loop, the Node-API extension…
InHuawei DevelopersbyBünyamin Eymen Alagöz·Jun 4, 2025🔄 Node-API Part-3: Wrapping a Native C++ Object in a Sendable ArkTS ClassNeed of safely expose native C++ objects to your ArkTS logic
InHuawei DevelopersbyBünyamin Eymen Alagöz·Jun 4, 2025🧵 Node-API Part-2: Safe Native-to-JavaScript Communication in HarmonyOS Using…ArkTS is single-threaded and not thread-safe by design. This is where the Node-API’s napi_create_threadsafe_function interface is crucial.
InHuawei DevelopersbyBünyamin Eymen Alagöz·Jun 4, 2025🚀 Node-API Part-1: Introduction to Node-API & Wrapping Native C++ Objects in ArkTS on…It’s how HarmonyOSNext lets your ArkTS/JS code talk directly to super-efficient C/C++ modules.