OH_ArkUI_DragPreviewOption_SetScaleMode

Function OH_ArkUI_DragPreviewOption_SetScaleMode 

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

Sets the scale mode for an ArkUI_DragPreviewOption object.

§Arguments

  • option - Indicates the pointer to an ArkUI_DragPreviewOption object.

  • scaleMode - Indicates the scale mode.

§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