OH_ArkUI_SetDragEventStrictReportWithNode

Function OH_ArkUI_SetDragEventStrictReportWithNode 

Source
pub unsafe extern "C" fn OH_ArkUI_SetDragEventStrictReportWithNode(
    node: ArkUI_NodeHandle,
    enabled: bool,
) -> i32
Available on crate feature api-12 only.
Expand description

Sets whether to enable strict reporting on drag events. This feature is disabled by default, and you are advised to enable it. If this feature is disabled, the parent component is not notified when an item in it is dragged over its child component. If this feature is enabled, the component is notified of the dragged item’s leaving, and the chil component to which the dragged item is dropped is notified of the item’s entering. This configuration is related to a specific UI instance. You can pass in a specific component node on the current UI instance for association.

§Arguments

  • node - Indicates the pointer to a component node.

  • enabled - Indicates whether to enable strict reporting on drag events.

§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