openharmony 鸿蒙 napi_status_introduction

Node-API Status Codes Overview Specifically, most Node-APIs return a status code enumeration of the napi_status type, indicating whether the operation is successful. This topic describes the non-napi_
阅读全文

openharmony 鸿蒙 napi-faq-about-stability

FAQs About Stability How do I troubleshoot the issue that an application often crashes during running Question: During Node-API development, an application often crashes, and the cpp crash stack is di
阅读全文

openharmony 鸿蒙 napi-faq-about-memory-leak

FAQs About Memory Leaks Is there any mechanism to check whether napi_ref leaks Question: When napi_create_reference is used to create a reference to a JS object, napi_delete_reference needs to be used
阅读全文

openharmony 鸿蒙 use-napi-about-context

Creating, Switching, and Destroying a Context in a Thread Using Node-API Extension APIs When an application is started, the main thread of the application is an ArkTS thread, which has a context manag
阅读全文

openharmony 鸿蒙 jsvm-locate-memory-leak

Troubleshooting JSVM-API Memory Leaks JSVM memory usage includes native memory usage (C/C++ memory usage) and heap memory usage of the underlying JavaScript engine. Heap memory is used for maintaining
阅读全文

openharmony 鸿蒙 jsvm-secure-shield-mode

JSVM-API Secure Shield Mode The Secure Shield mode is a system-level security protection solution designed for users with high security requirements. This mode strictly restricts functionalities to si
阅读全文

openharmony 鸿蒙 native-print-file

Printing Files (C/C++) OpenHarmony provides two printing methods: Method 1: An application calls an API to start the system print preview page and sends a print job for the rendered PDF file to a prin
阅读全文

openharmony 鸿蒙 printExtensionAbilityGuide

PrintExtensionAbility Overview PrintExtensionAbility is supported since API version 14. It extends the system printing functionality, allowing software to simulate printer behavior and implement print
阅读全文