/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-inner-application-eventHub.md | 24 eventFunc() { 25 console.log('eventFunc is called'); 29 this.context.eventHub.on('myEvent', this.eventFunc); 86 // eventFunc is called, value: undefined 95 eventFunc() { 127 // anonymous eventFunc is called, value: 12 136 eventFunc() { 239 // eventFunc is called,undefined,undefined 242 // eventFunc is called,1,undefined 245 // eventFunc is called,1,2 [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/ |
H A D | overlay_manager_dialog_test_ng.cpp | 243 dialogEvent["changeId"] = eventFunc; 244 dialogEvent["acceptId"] = eventFunc; 312 dialogEvent["changeId"] = eventFunc; 313 dialogEvent["acceptId"] = eventFunc; 401 dialogEvent["changeId"] = eventFunc; 402 dialogEvent["acceptId"] = eventFunc; 458 dialogEvent["changeId"] = eventFunc; 459 dialogEvent["acceptId"] = eventFunc; 519 dialogEvent["changeId"] = eventFunc; 520 dialogEvent["acceptId"] = eventFunc; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | action_sheet_model_impl.cpp | 44 void ActionSheetModelImpl::SetAction(GestureEventFunc&& eventFunc, ActionSheetInfo& sheetInfo) in SetAction() argument 48 tapGesture->SetOnActionId([func = std::move(eventFunc)](GestureEvent& info) { in SetAction() 67 void ActionSheetModelImpl::SetCancel(std::function<void()>&& eventFunc, DialogProperties& arg) in SetCancel() argument 70 EventMarker cancelId(std::move(eventFunc)); in SetCancel() 74 …ctionSheetModelImpl::SetConfirm(GestureEventFunc&& gestureEvent, std::function<void()>&& eventFunc, in SetConfirm() argument 77 EventMarker actionId(std::move(eventFunc)); in SetConfirm()
|
H A D | action_sheet_model_impl.h | 25 void SetAction(GestureEventFunc&& eventFunc, ActionSheetInfo& sheetInfo) override; 26 void SetCancel(std::function<void()>&& eventFunc, DialogProperties& arg) override; 27 void SetConfirm(GestureEventFunc&& gestureEvent, std::function<void()>&& eventFunc,
|
H A D | alert_dialog_model_impl.cpp | 32 void AlertDialogModelImpl::SetOnCancel(std::function<void()>&& eventFunc, DialogProperties& arg) in SetOnCancel() argument 34 EventMarker cancelId(std::move(eventFunc)); in SetOnCancel()
|
H A D | alert_dialog_model_impl.h | 26 void SetOnCancel(std::function<void()>&& eventFunc, DialogProperties& arg) override;
|
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-inner-application-eventHub.md | 24 eventFunc() { 25 console.log('eventFunc is called'); 29 this.context.eventHub.on('myEvent', this.eventFunc); 86 // eventFunc is called, value: undefined 95 eventFunc() { 127 // anonymous eventFunc is called, value: 12 136 eventFunc() { 239 // eventFunc is called,undefined,undefined 242 // eventFunc is called,1,undefined 245 // eventFunc is called,1,2 [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/action_sheet/ |
H A D | action_sheet_model_ng.cpp | 58 void ActionSheetModelNG::SetAction(GestureEventFunc&& eventFunc, ActionSheetInfo& sheetInfo) in SetAction() argument 60 sheetInfo.action = AceType::MakeRefPtr<NG::ClickEvent>(std::move(eventFunc)); in SetAction() 63 void ActionSheetModelNG::SetCancel(std::function<void()>&& eventFunc, DialogProperties& arg) in SetCancel() argument 65 arg.onCancel = eventFunc; in SetCancel() 75 …GestureEventFunc&& gestureEvent, std::function<void()>&& eventFunc, ButtonInfo& buttonInfo, Dialog… in SetConfirm() argument
|
H A D | action_sheet_model_ng.h | 26 void SetAction(GestureEventFunc&& eventFunc, ActionSheetInfo& sheetInfo) override; 27 void SetCancel(std::function<void()>&& eventFunc, DialogProperties& arg) override; 28 void SetConfirm(GestureEventFunc&& gestureEvent, std::function<void()>&& eventFunc,
|
H A D | action_sheet_model.h | 31 virtual void SetAction(GestureEventFunc&& eventFunc, ActionSheetInfo& sheetInfo) = 0; 32 virtual void SetCancel(std::function<void()>&& eventFunc, DialogProperties& arg) = 0; 33 virtual void SetConfirm(GestureEventFunc&& gestureEvent, std::function<void()>&& eventFunc,
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/picker/ |
H A D | date_picker_test_ng.cpp | 554 dialogEvent["changeId"] = eventFunc; 555 dialogEvent["acceptId"] = eventFunc; 601 dialogEvent["changeId"] = eventFunc; 602 dialogEvent["acceptId"] = eventFunc; 652 dialogEvent["changeId"] = eventFunc; 653 dialogEvent["acceptId"] = eventFunc; 695 dialogEvent["changeId"] = eventFunc; 696 dialogEvent["acceptId"] = eventFunc; 748 dialogEvent["changeId"] = eventFunc; 749 dialogEvent["acceptId"] = eventFunc; [all …]
|
H A D | date_picker_column_test_ng.cpp | 450 dialogEvent["changeId"] = eventFunc; 451 dialogEvent["acceptId"] = eventFunc; 513 dialogEvent["changeId"] = eventFunc; 514 dialogEvent["acceptId"] = eventFunc; 584 dialogEvent["changeId"] = eventFunc; 585 dialogEvent["acceptId"] = eventFunc; 636 dialogEvent["changeId"] = eventFunc; 637 dialogEvent["acceptId"] = eventFunc; 687 dialogEvent["changeId"] = eventFunc; 688 dialogEvent["acceptId"] = eventFunc; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/time_picker/ |
H A D | time_picker_test_ng.cpp | 667 dialogEvent["changeId"] = eventFunc; 668 dialogEvent["acceptId"] = eventFunc; 2841 dialogEvent["changeId"] = eventFunc; 2842 dialogEvent["acceptId"] = eventFunc; 2879 dialogEvent["changeId"] = eventFunc; 2880 dialogEvent["acceptId"] = eventFunc; 2924 dialogEvent["changeId"] = eventFunc; 2925 dialogEvent["acceptId"] = eventFunc; 2969 dialogEvent["changeId"] = eventFunc; 2970 dialogEvent["acceptId"] = eventFunc; [all …]
|
/ohos5.0/docs/zh-cn/application-dev/faqs/ |
H A D | faqs-event-notification.md | 130 this.context.eventHub.on('myEvent', this.eventFunc); 135 // eventFunc is called,undefined,undefined 138 // eventFunc is called,1,undefined 141 // eventFunc is called,1,2 145 eventFunc(argOne, argTwo) { 146 console.log('eventFunc is called, ${argOne}, ${argTwo}');
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/ |
H A D | alert_dialog_model_ng.cpp | 29 …std::function<void()>&& eventFunc, ButtonInfo& buttonInfo, DialogProperties& arg, const std::strin… in SetParseButtonObj() argument 31 auto func = eventFunc; in SetParseButtonObj() 36 void AlertDialogModelNG::SetOnCancel(std::function<void()>&& eventFunc, DialogProperties& arg) in SetOnCancel() argument 38 arg.onCancel = eventFunc; in SetOnCancel()
|
H A D | alert_dialog_model_ng.h | 26 void SetOnCancel(std::function<void()>&& eventFunc, DialogProperties& arg) override;
|
H A D | alert_dialog_model.h | 30 virtual void SetOnCancel(std::function<void()>&& eventFunc, DialogProperties& arg) = 0;
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | component.h | 535 void SetClickEventListener(UIView& view, const jerry_value_t eventFunc, bool isStopPropagation); 536 …void SetLongPressEventListener(UIView& view, const jerry_value_t eventFunc, bool isStopPropagation… 537 void SetSwipeEventListener(UIView& view, jerry_value_t eventFunc, bool isStopPropagation); 538 void SetTouchStartEventListener(UIView& view, jerry_value_t eventFunc, bool isStopPropagation); 539 void SetTouchMoveEventListener(UIView& view, jerry_value_t eventFunc, bool isStopPropagation); 540 void SetTouchEndEventListener(UIView& view, jerry_value_t eventFunc, bool isStopPropagation); 542 void SetTouchCancelEventListener(UIView &view, jerry_value_t eventFunc, bool isStopPropagation); 543 void SetKeyBoardEventListener(jerry_value_t eventFunc, bool isStopPropagation);
|
H A D | component.cpp | 1128 onClickListener_ = new ViewOnClickListener(viewModel_, eventFunc, isStopPropagation); in SetClickEventListener() 1141 onTouchCancelListener_ = new ViewOnTouchCancelListener(eventFunc, eventTypeId); in SetTouchCancelEventListener() 1152 void Component::SetKeyBoardEventListener(jerry_value_t eventFunc, uint16_t eventTypeId) in SetKeyBoardEventListener() argument 1159 keyBoardEventListener_ = new KeyBoardEventListener(eventFunc, eventTypeId); in SetKeyBoardEventListener() 1170 onLongPressListener_ = new ViewOnLongPressListener(viewModel_, eventFunc, isStopPropagation); in SetLongPressEventListener() 1180 void Component::SetSwipeEventListener(UIView &view, jerry_value_t eventFunc, bool isStopPropagation) in SetSwipeEventListener() argument 1194 onTouchListener_->SetBindSwipeFuncName(eventFunc); in SetSwipeEventListener() 1212 onTouchListener_->SetBindTouchStartFuncName(eventFunc); in SetTouchStartEventListener() 1229 onTouchListener_->SetBindTouchMoveFuncName(eventFunc); in SetTouchMoveEventListener() 1232 void Component::SetTouchEndEventListener(UIView &view, jerry_value_t eventFunc, bool isStopPropagat… in SetTouchEndEventListener() argument [all …]
|
/ohos5.0/docs/en/application-dev/faqs/ |
H A D | faqs-event-notification.md | 130 this.context.eventHub.on('myEvent', this.eventFunc); 135 // eventFunc is called,undefined,undefined 138 // eventFunc is called,1,undefined 141 // eventFunc is called,1,2 145 eventFunc(argOne, argTwo) { 146 console.log('eventFunc is called, ${argOne}, ${argTwo}');
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/action_sheet/ |
H A D | js_action_sheet.cpp | 96 …auto eventFunc = [execContext, func = std::move(actionFunc), node = frameNode](const GestureEvent&… in ParseSheetInfo() local 104 ActionSheetModel::GetInstance()->SetAction(eventFunc, sheetInfo); in ParseSheetInfo() 156 auto eventFunc = [execContext, func = std::move(actionFunc), node = frameNode]() { in ParseConfirmButton() local 164 … ActionSheetModel::GetInstance()->SetConfirm(gestureEvent, eventFunc, buttonInfo, properties); in ParseConfirmButton() 376 auto eventFunc = [execContext, func = std::move(cancelFunc), node = dialogNode]() { in Show() local 384 ActionSheetModel::GetInstance()->SetCancel(eventFunc, properties); in Show()
|
/ohos5.0/docs/zh-cn/application-dev/application-models/ |
H A D | uiability-data-sync-with-ui.md | 30 eventhub.on('event1', this.eventFunc); 38 eventFunc(argOne: Context, argTwo: Context): void {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/dialog/ |
H A D | js_alert_dialog.cpp | 117 …auto eventFunc = [execCtx = execContext, func = std::move(actionFunc), property, node = frameNode]… in ParseButtonObj() local 125 … AlertDialogModel::GetInstance()->SetParseButtonObj(eventFunc, buttonInfo, properties, property); in ParseButtonObj() 429 auto eventFunc = [execContext, func = std::move(cancelFunc), node = dialogNode]() { in Show() local 437 AlertDialogModel::GetInstance()->SetOnCancel(eventFunc, properties); in Show()
|
/ohos5.0/foundation/communication/netmanager_ext/services/networksharemanager/src/ |
H A D | networkshare_sub_statemachine.cpp | 197 int (NetworkShareSubStateMachine::*eventFunc)(const std::any &messageObj) = nullptr; in SubSmEventHandle() local 200 eventFunc = iterState.func_; in SubSmEventHandle() 205 if (eventFunc == nullptr) { in SubSmEventHandle() 209 (this->*eventFunc)(messageObj); in SubSmEventHandle()
|
/ohos5.0/docs/en/application-dev/application-models/ |
H A D | uiability-data-sync-with-ui.md | 30 eventhub.on('event1', this.eventFunc); 38 eventFunc(argOne: Context, argTwo: Context): void {
|