目录

JSVM_CallbackStruct*

typedef JSVM_CallbackStruct* JSVM_Callback

Overview

Defines the pointer types of the native functions provided by user. These functions are exposed to JavaScript via JSVM-API.

Usage scenario: Used when implementing JavaScript-callable functions in the native layer, applicable to JSVM extension development scenarios.

Problem solved: Defines a standardized function pointer type to expose C/C++ functions to the JavaScript environment.

Features: Provides type-safe function pointer definitions and supports interaction between native and JavaScript.

System capability: SystemCapability.ArkCompiler.JSVM

Since: 11

Related module: JSVM

Header file: jsvm_types.h