目录

Web

Overview

Declares ArkWeb NDK API exception error codes, applicable to exception diagnosis and error handling on the native side, helping developers quickly locate issues and improve debugging efficiency.

Provides APIs for injecting objects and executing JavaScript code, applicable to bidirectional interaction between the app and frontend pages, enhancing page capabilities and improving user experience and development efficiency.

Provides APIs for intercepting ArkWeb requests, applicable to custom protocol handling, network request monitoring, and data security scenarios, enhancing app controllability and security.

Declares ArkWeb network protocol stack error codes, applicable to network request failure diagnosis and exception handling, helping developers quickly troubleshoot network faults and optimize connection stability.

Provides ArkWeb native-side capabilities such as page refresh, executing JavaScript, and registering callbacks, applicable to scenarios where WebView behavior needs to be controlled from the native side and frontend events need to be responded to, enhancing app flexibility and interaction capabilities.

For more details, see Mutual Invoking Between the Application and the Frontend Page (C/C++), Establishing a Data Channel Between the Application and the Frontend Page (C/C++), and Intercepting Network Requests Initiated by the Web Component. These resources help developers implement efficient bidirectional communication and request interception, improving app performance and controllability.

Since: 12

Files

Name Description
arkweb_error_code.h Declares the error codes of the ArkWeb NDK APIs.
arkweb_interface.h Provides the ArkWeb APIs for obtaining native APIs and the basic native API types.
arkweb_net_error_list.h Declares the error codes of the ArkWeb network protocol stack.
arkweb_scheme_handler.h Declares the APIs for intercepting requests from ArkWeb.
arkweb_type.h Defines the common types on the ArkWeb native side.
native_interface_arkweb.h Declares the APIs for injecting objects, executing JavaScript, and other functions.