OH_ArkUI_CustomDialog_SetCornerRadius

Function OH_ArkUI_CustomDialog_SetCornerRadius 

Source
pub unsafe extern "C" fn OH_ArkUI_CustomDialog_SetCornerRadius(
    options: *mut ArkUI_CustomDialogOptions,
    topLeft: f32,
    topRight: f32,
    bottomLeft: f32,
    bottomRight: f32,
) -> i32
Available on crate features api-12 and api-19 only.
Expand description

Sets the corner radius for a custom dialog box.

§Arguments

  • options - Dialog box parameters.

  • topLeft - Corner radius of the upper left corner.

  • topRight - Corner radius of the upper right corner.

  • bottomLeft - Corner radius of the lower left corner.

  • bottomRight - Corner radius of the lower right corner.

§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