pub unsafe extern "C" fn napi_get_reference_value(
env: napi_env,
ref_: napi_ref,
result: *mut napi_value,
) -> napi_statusAvailable on crate feature
napi only.Expand description
Obtains the ArkTS Object associated with the reference.
§Arguments
-
env- Current running virtual machine context. -
ref- The napi_ref of the value being requested. -
result- The napi_value referenced by the napi_ref.
§Returns
- Returns the function execution status.
[
napi_ok] If the function executed successfully.
[napi_invalid_arg] If env, ref or result is nullptr.
Available since API-level: 10