diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index 580f253e469126ff598c9df98f0eb3b9a0a405b2..57dabe53f634716e5add9c23391346d5d91a311f 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -3207,6 +3207,10 @@ "first_introduced": "18", "name": "OH_ArkUI_CustomDialog_RegisterOnDidDisappearCallback" }, + { + "first_introduced": "20", + "name": "OH_ArkUI_CustomDialog_GetState" + }, { "first_introduced": "18", "name": "OH_ArkUI_TextPickerRangeContentArray_Create" diff --git a/arkui/ace_engine/native/native_dialog.h b/arkui/ace_engine/native/native_dialog.h index 42fb45febebefd32d61650d4c2703a95f4eded2d..177de0770bbdbefc49be8603e42cdd519f846ef0 100644 --- a/arkui/ace_engine/native/native_dialog.h +++ b/arkui/ace_engine/native/native_dialog.h @@ -362,18 +362,6 @@ typedef struct { */ int32_t (*registerOnWillDismissWithUserData)( ArkUI_NativeDialogHandle handle, void* userData, void (*callback)(ArkUI_DialogDismissEvent* event)); - - /** - * @brief Get state of dialog. - * - * @param handle Indicates the pointer to the custom dialog box controller. - * @param state Dialog state object. - * @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 20 - */ - int32_t (*getState)(ArkUI_NativeDialogHandle handle, ArkUI_DialogState* state); } ArkUI_NativeDialogAPI_1; /** @@ -1146,6 +1134,18 @@ int32_t OH_ArkUI_CustomDialog_RegisterOnWillDisappearCallback( int32_t OH_ArkUI_CustomDialog_RegisterOnDidDisappearCallback( ArkUI_CustomDialogOptions* options, void* userData, void (*callback)(void* userData)); +/** + * @brief Get state of dialog. + * + * @param handle Indicates the pointer to the custom dialog box controller. + * @param state Dialog state object. + * @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 20 + */ +int32_t OH_ArkUI_CustomDialog_GetState(ArkUI_NativeDialogHandle handle, ArkUI_DialogState* state); + #ifdef __cplusplus }; #endif