pub unsafe extern "C" fn OH_ArkUI_CustomDialog_SetLevelMode(
options: *mut ArkUI_CustomDialogOptions,
levelMode: ArkUI_LevelMode,
) -> i32Available on crate features
api-12 and api-19 only.Expand description
Sets the level mode for a custom dialog box.
Note: This method must be called before the OH_ArkUI_CustomDialog_OpenDialog method.
§Arguments
-
options- Indicates the pointer to the custom dialog options. -
levelMode- Indicates the level mode. The parameter type isArkUI_LevelMode.
§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