OH_ArkUI_GetNodeContentFromNapiValue

Function OH_ArkUI_GetNodeContentFromNapiValue 

Source
pub unsafe extern "C" fn OH_ArkUI_GetNodeContentFromNapiValue(
    env: napi_env,
    value: napi_value,
    content: *mut ArkUI_NodeContentHandle,
) -> i32
Available on crate feature api-12 only.
Expand description

Obtains a NodeContent object on the ArkTS side and maps it to an ArkUI_NodeContentHandle object on the native side.

§Arguments

  • env - ndicates the NAPI environment pointer.

  • value - Indicates the NodeContent object created on the ArkTS side.

  • content - Indicates the pointer to the ArkUI_NodeContentHandle object.

§Returns

  • Returns the error code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.

Available since API-level: 12