OH_ArkUI_SetNodeDragPreviewOption

Function OH_ArkUI_SetNodeDragPreviewOption 

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

Sets an ArkUI_DragPreviewOption object for the specified component.

§Arguments

  • node - Indicates the pointer to a component node.

  • option - Indicates the pointer to an ArkUI_DragPreviewOption object.

§Returns

  • Returns the result 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