OH_ArkUI_CustomDialog_UpdateDialog

Function OH_ArkUI_CustomDialog_UpdateDialog 

Source
pub unsafe extern "C" fn OH_ArkUI_CustomDialog_UpdateDialog(
    options: *mut ArkUI_CustomDialogOptions,
    callback: Option<unsafe extern "C" fn(dialogId: i32)>,
) -> i32
Available on crate features api-12 and api-19 only.
Expand description

Updates a custom dialog box.

§Arguments

  • options - Dialog box parameters.

  • callback - Callback to be invoked when the custom dialog box updates.

§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