pub unsafe extern "C" fn OH_ArkUI_DragEvent_DisableDefaultDropAnimation(
event: *mut ArkUI_DragEvent,
disable: bool,
) -> i32Available on crate feature
api-12 only.Expand description
Sets whether to disable the default drop animation. The default drop animation is enabled by default and can be disabled to apply a custom drop animation.
§Arguments
-
event- Indicates the pointer to an ArkUI_DragEvent object. -
disable- Indicates whether to disable the default drop animation. The value true means to disable the default drop animation, and false means the opposite.
§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