OH_ArkUI_CustomDialog_SetImmersiveMode

Function OH_ArkUI_CustomDialog_SetImmersiveMode 

Source
pub unsafe extern "C" fn OH_ArkUI_CustomDialog_SetImmersiveMode(
    options: *mut ArkUI_CustomDialogOptions,
    immersiveMode: ArkUI_ImmersiveMode,
) -> i32
Available on crate features api-12 and api-19 only.
Expand description

Sets the immersive 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.

  • immersiveMode - Indicates the immersive mode. The parameter type is ArkUI_ImmersiveMode.

§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