OH_ArkUI_CustomDialog_SetHoverModeEnabled

Function OH_ArkUI_CustomDialog_SetHoverModeEnabled 

Source
pub unsafe extern "C" fn OH_ArkUI_CustomDialog_SetHoverModeEnabled(
    options: *mut ArkUI_CustomDialogOptions,
    enabled: bool,
) -> i32
Available on crate features api-12 and api-19 only.
Expand description

Sets whether to enable the hover mode for the dialog box.

§Arguments

  • options - Dialog box parameters.

  • enabled - Whether to enable the hover mode. The default value is false.

§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: 19