pub unsafe extern "C" fn OH_ArkUI_CustomDialog_SetAutoCancel(
options: *mut ArkUI_CustomDialogOptions,
autoCancel: bool,
) -> i32Available on crate features
api-12 and api-19 only.Expand description
Specifies whether to allow users to touch the mask to dismiss the custom dialog box.
§Arguments
-
options- Dialog box parameters. -
autoCancel- Specifies whether to allow users to touch the mask to dismiss the dialog box. The value true means to allow users to do so, and false means the opposite.
§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