pub unsafe extern "C" fn napi_load_module_with_info(
env: napi_env,
path: *const c_char,
module_info: *const c_char,
result: *mut napi_value,
) -> napi_statusAvailable on crate features
napi and api-12 only.Expand description
The module is loaded through the NAPI. By default, the default object is exported from the module.
§Arguments
-
env- Current running virtual machine context. -
path- Path name of the module to be loaded, like -
module_info- Path names of bundle and module, like com.example.application/entry. -
result- Result of loading a module, which is an exported object of the module.
§Returns
- Returns the function execution status.
Available since API-level: 12