OH_ArkUI_CustomDialog_SetSubwindowMode

Function OH_ArkUI_CustomDialog_SetSubwindowMode 

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

Sets whether to display the dialog box in a subwindow.

§Arguments

  • options - Dialog box parameters.

  • showInSubwindow - Whether to display the dialog box in a subwindow when it is not in the main window. The default value is false, meaning the dialog box is displayed within the application, not in a separate subwindow.

§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