OH_ArkUI_NodeAdapterEvent_SetItem

Function OH_ArkUI_NodeAdapterEvent_SetItem 

Source
pub unsafe extern "C" fn OH_ArkUI_NodeAdapterEvent_SetItem(
    event: *mut ArkUI_NodeAdapterEvent,
    node: ArkUI_NodeHandle,
) -> i32
Available on crate feature api-12 only.
Expand description

Sets the component to be added to the specified adapter.

§Arguments

  • event - Indicates the target adapter event.

  • node - Indicates the component to be added.

§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