From 8a35083e0b755a37e8b6dee7fba8c2b6039b3b7c Mon Sep 17 00:00:00 2001 From: zhanghaibo Date: Fri, 22 Nov 2024 10:13:52 +0800 Subject: [PATCH 1/2] support display order Signed-off-by: zhanghaibo Change-Id: I6daf47a0ae00ba9f73a4e807a0787357d3e1a12b --- arkui/ace_engine/native/native_dialog.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arkui/ace_engine/native/native_dialog.h b/arkui/ace_engine/native/native_dialog.h index 95b1a6cbe..1523f08af 100644 --- a/arkui/ace_engine/native/native_dialog.h +++ b/arkui/ace_engine/native/native_dialog.h @@ -253,6 +253,18 @@ typedef struct { */ int32_t (*registerOnWillDismiss)(ArkUI_NativeDialogHandle handle, ArkUI_OnWillDismissEvent eventHandler); /** + * @brief Sets the display order for a custom dialog box. + * + * @note This method must be called before the show method. + * @param handle Indicates the pointer to the custom dialog box controller. + * @param levelOrder Indicates the display order. + * @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 16 + */ + int32_t (*setLevelOrder)(ArkUI_NativeDialogHandle handle, int32_t levelMode); + /** * @brief Shows a custom dialog box. * * @param handle Indicates the pointer to the custom dialog box controller. -- Gitee From 935d7bd11935e84fa2876731c7d20659dfc2364c Mon Sep 17 00:00:00 2001 From: zhanghaibo Date: Fri, 7 Feb 2025 08:34:14 +0000 Subject: [PATCH 2/2] Update arkui/ace_engine/native/native_dialog.h --- arkui/ace_engine/native/native_dialog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkui/ace_engine/native/native_dialog.h b/arkui/ace_engine/native/native_dialog.h index 1523f08af..d7e59c30d 100644 --- a/arkui/ace_engine/native/native_dialog.h +++ b/arkui/ace_engine/native/native_dialog.h @@ -263,7 +263,7 @@ typedef struct { * Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter error occurs. * @since 16 */ - int32_t (*setLevelOrder)(ArkUI_NativeDialogHandle handle, int32_t levelMode); + int32_t (*setLevelOrder)(ArkUI_NativeDialogHandle handle, int32_t levelOrder); /** * @brief Shows a custom dialog box. * -- Gitee