harmony 鸿蒙native_dialog.h

2025-06-12 浏览 (1)

native_dialog.h

Overview

Declares a set of custom dialog box APIs of ArkUI on the native side.

Library: libace_ndk.z.so

System capability: SystemCapability.ArkUI.ArkUI.Full

Since: 12

Related module: ArkUI_NativeModule

Summary

Structs

NameDescription
struct  ArkUI_NativeDialogAPI_1Defines a struct for the custom dialog box APIs on the native side.

Types

NameDescription
typedef bool(* ArkUI_OnWillDismissEvent) (int32_t reason)Invoked when the dialog box is closed.
typedef struct ArkUI_DialogDismissEvent ArkUI_DialogDismissEventDefines a struct for a dialog box dismiss event.

Enums

NameDescription
ArkUI_DismissReason { DIALOG_DISMISS_BACK_PRESS = 0, DIALOG_DISMISS_TOUCH_OUTSIDE, DIALOG_DISMISS_CLOSE_BUTTON, DIALOG_DISMISS_SLIDE_DOWN }Enumerates the actions for triggering closure of the dialog box.

Functions

NameDescription
void OH_ArkUI_DialogDismissEvent_SetShouldBlockDismiss (ArkUI_DialogDismissEvent *event, bool shouldBlockDismiss)Sets whether to block the system behavior of dismissing a dialog box.
void * OH_ArkUI_DialogDismissEvent_GetUserData (ArkUI_DialogDismissEvent *event)Obtains the pointer to user data in a dialog box dismiss event object.
int32_t OH_ArkUI_DialogDismissEvent_GetDismissReason (ArkUI_DialogDismissEvent *event)Obtains the dismissal reason from a dialog box dismiss event object.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkUI

harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent

harmony 鸿蒙ARKUI_TextPickerRangeContent

harmony 鸿蒙ArkUI_AnimateCompleteCallback

harmony 鸿蒙ArkUI_AttributeItem

harmony 鸿蒙ArkUI_ColorStop

harmony 鸿蒙ArkUI_ContextCallback

harmony 鸿蒙ArkUI_EventModule

harmony 鸿蒙ArkUI_ExpectedFrameRateRange

harmony 鸿蒙ArkUI_IntOffset

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/DDp6zq