OH_ArkUI_NodeUtils_GetNodeUniqueId

Function OH_ArkUI_NodeUtils_GetNodeUniqueId 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeUtils_GetNodeUniqueId(
    node: ArkUI_NodeHandle,
    uniqueId: *mut i32,
) -> i32
Available on crate features api-12 and api-20 only.
Expand description

Get the uniqueId of the target node handle.

§Arguments

  • node - The ArkUI-NodeHandle pointer.

  • uniqueId - The uniqueId of the target node handle, default value is -1.

§Returns

  • Error code. [ARKUI_ERROR_CODE_NO_ERROR] success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception. [ARKUI_ERROR_CODE_CAPI_INIT_ERROR] if the CAPI init error.

Available since API-level: 20