OH_ArkUI_CustomDialog_RegisterOnDidDisappearCallback

Function OH_ArkUI_CustomDialog_RegisterOnDidDisappearCallback 

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

Registers a callback to be invoked when the custom dialog box disappears.

§Arguments

  • options - Dialog box parameters.

  • userData - Pointer to the user-defined data.

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

§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