OH_ArkUI_CustomDialog_SetAlignment

Function OH_ArkUI_CustomDialog_SetAlignment 

Source
pub unsafe extern "C" fn OH_ArkUI_CustomDialog_SetAlignment(
    options: *mut ArkUI_CustomDialogOptions,
    alignment: i32,
    offsetX: f32,
    offsetY: f32,
) -> i32
Available on crate features api-12 and api-19 only.
Expand description

Sets the alignment mode of the dialog box.

§Arguments

  • options - Dialog box parameters.

  • alignment - Alignment mode of the dialog box. The parameter type is ArkUI_Alignment.

  • offsetX - Indicates the horizontal offset of the custom dialog box. The value is a floating point number.

  • offsetY - Indicates the vertical offset of the custom dialog box. The value is a floating point number.

§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