【CAPI】dialog通用告警修改

Signed-off-by: yyuanche <yuancheng25@huawei.com>

Change-Id: If6cd3e162b7b7aadb2ece2fa70b5aa84bf32e8e4
This commit is contained in:
y30043833 2024-08-09 05:56:46 +00:00
parent efbcbfed93
commit 82253271a5

View File

@ -198,6 +198,10 @@ int32_t RegisterOnWillDismissWithUserData(
} // namespace OHOS::Ace::NG::DialogModel
#ifdef __cplusplus
extern "C" {
#endif
void OH_ArkUI_DialogDismissEvent_SetShouldBlockDismiss(ArkUI_DialogDismissEvent* event, bool shouldBlockDismiss)
{
if (!event) {
@ -220,4 +224,8 @@ int32_t OH_ArkUI_DialogDismissEvent_GetDismissReason(ArkUI_DialogDismissEvent* e
return -1;
}
return event->reason;
}
}
#ifdef __cplusplus
};
#endif