pub unsafe extern "C" fn OH_ArkUI_CustomDialog_SetMask(
options: *mut ArkUI_CustomDialogOptions,
maskColor: u32,
maskRect: *const ArkUI_Rect,
) -> i32Available on crate features
api-12 and api-19 only.Expand description
Sets the mask for a custom dialog box.
§Arguments
-
options- Dialog box parameters. -
maskColor- Mask color, in 0xargb format. -
maskRect- Pointer to the mask area. Events outside the mask area are transparently transmitted, and events within the mask area are not. The parameter type isArkUI_Rect.
§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