napi_unwrap_sendable

Function napi_unwrap_sendable 

Source
pub unsafe extern "C" fn napi_unwrap_sendable(
    env: napi_env,
    js_object: napi_value,
    result: *mut *mut c_void,
) -> napi_status
Available on crate features napi and api-12 only.
Expand description

Retrieves a native instance that was previously wrapped in an ArkTS object.

§Arguments

  • env - The environment that the API is invoked under.

  • js_object - The object associated with the native instance.

  • result - Pointer to the wrapped native instance.

§Returns

  • Return the function execution status.

Available since API-level: 12