mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
【CAPI】dialog通用告警修改
Signed-off-by: yyuanche <yuancheng25@huawei.com> Change-Id: If6cd3e162b7b7aadb2ece2fa70b5aa84bf32e8e4
This commit is contained in:
parent
efbcbfed93
commit
82253271a5
@ -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
|
Loading…
Reference in New Issue
Block a user