OH_ArkUI_CustomDialog_SetModalMode

Function OH_ArkUI_CustomDialog_SetModalMode 

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

Sets the modal mode for a custom dialog box.

§Arguments

  • options - Dialog box parameters.

  • isModal - Whether the dialog box is a modal. A modal dialog box has a mask applied, while a non-modal dialog box does not. The value true means that the dialog box is a modal.

§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