pub unsafe extern "C" fn OH_ArkUI_GetNodeHandleFromNapiValue(
env: napi_env,
frameNode: napi_value,
handle: *mut ArkUI_NodeHandle,
) -> i32Available on crate feature
api-12 only.Expand description
Obtains a FrameNode object on the ArkTS side and maps it to an ArkUI_NodeHandle object on the native side.
§Arguments
-
env- Indicates the NAPI environment pointer. -
frameNode- Indicates the FrameNode object created on the ArkTS side. -
handle- Indicates the pointer to the ArkUI_NodeHandle 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