OH_ArkUI_CustomDialog_SetShadow

Function OH_ArkUI_CustomDialog_SetShadow 

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

Sets the shadow of the dialog box background.

§Arguments

  • options - Dialog box parameters.

  • shadow - Shadow style of the background, specified by an enumerated value.

§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