From 802df2e2ce8b2f0b377c8d0e8e9f93b9a469ca7c Mon Sep 17 00:00:00 2001 From: houguobiao Date: Mon, 17 Mar 2025 11:40:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90Dialog=E5=B1=82=E7=BA=A7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=92=8C=E8=8E=B7=E7=84=A6=E7=AD=96=E7=95=A5?= =?UTF-8?q?CAPI=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: houguobiao Change-Id: I05dd6035eb47f18efc6753b8c54959366f7af668 --- arkui/ace_engine/native/native_dialog.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arkui/ace_engine/native/native_dialog.h b/arkui/ace_engine/native/native_dialog.h index 5de204ab4..72696055c 100644 --- a/arkui/ace_engine/native/native_dialog.h +++ b/arkui/ace_engine/native/native_dialog.h @@ -1087,6 +1087,31 @@ int32_t OH_ArkUI_CustomDialog_RegisterOnWillDisappearCallback( int32_t OH_ArkUI_CustomDialog_RegisterOnDidDisappearCallback( ArkUI_CustomDialogOptions* options, void* userData, void (*callback)(void* userData)); +/** + * @brief Sets the display order for a custom dialog box. + * + * @note This method must be called before the show method. + * @param options Dialog box parameters. + * @param levelOrder Indicates the display order. The valid range is [-100000.0, 100000.0]. + * @return Returns the error code. + * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. + * @since 18 + */ +int32_t OH_ArkUI_CustomDialog_SetLevelOrder(ArkUI_CustomDialogOptions* options, double levelOrder); + +/** + * @brief Sets whether to get focus when the custom dialog is displayed. + * + * @param options Dialog box parameters. + * @param focusable Specifies whether to get focus when the custom dialog is displayed. The default value is true. + * @return Returns the error code. + * Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if the operation is successful. + * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. + * @since 18 + */ +int32_t OH_ArkUI_CustomDialog_SetFocusable(ArkUI_CustomDialogOptions* options, bool focusable); + #ifdef __cplusplus }; #endif -- Gitee