Skip to main content

napi_get_strong_sendable_reference_value

Function napi_get_strong_sendable_reference_value 

Source
pub unsafe extern "C" fn napi_get_strong_sendable_reference_value(
    env: napi_env,
    ref_: napi_sendable_ref,
    result: *mut napi_value,
) -> napi_status
Available on crate features napi and api-22 only.
Expand description

Obtains the ArkTS Object associated with the strong reference.

§Arguments

  • env - Current running virtual machine context.

  • ref - The sendable reference of the sendable object value being requested.

  • result - The sendable ArkTS object referenced by the sendable reference.

§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: 22