Home
last modified time | relevance | path

Searched refs:eventFunc (Results 1 – 25 of 32) sorted by relevance

12

/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/
H A Djs-apis-inner-application-eventHub.md24 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 Doverlay_manager_dialog_test_ng.cpp243 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 Daction_sheet_model_impl.cpp44 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 Daction_sheet_model_impl.h25 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 Dalert_dialog_model_impl.cpp32 void AlertDialogModelImpl::SetOnCancel(std::function<void()>&& eventFunc, DialogProperties& arg) in SetOnCancel() argument
34 EventMarker cancelId(std::move(eventFunc)); in SetOnCancel()
H A Dalert_dialog_model_impl.h26 void SetOnCancel(std::function<void()>&& eventFunc, DialogProperties& arg) override;
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/
H A Djs-apis-inner-application-eventHub.md24 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 Daction_sheet_model_ng.cpp58 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 Daction_sheet_model_ng.h26 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 Daction_sheet_model.h31 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 Ddate_picker_test_ng.cpp554 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 Ddate_picker_column_test_ng.cpp450 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 Dtime_picker_test_ng.cpp667 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 Dfaqs-event-notification.md130 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 Dalert_dialog_model_ng.cpp29 …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 Dalert_dialog_model_ng.h26 void SetOnCancel(std::function<void()>&& eventFunc, DialogProperties& arg) override;
H A Dalert_dialog_model.h30 virtual void SetOnCancel(std::function<void()>&& eventFunc, DialogProperties& arg) = 0;
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dcomponent.h535 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 Dcomponent.cpp1128 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 Dfaqs-event-notification.md130 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 Djs_action_sheet.cpp96 …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 Duiability-data-sync-with-ui.md30 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 Djs_alert_dialog.cpp117 …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 Dnetworkshare_sub_statemachine.cpp197 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 Duiability-data-sync-with-ui.md30 eventhub.on('event1', this.eventFunc);
38 eventFunc(argOne: Context, argTwo: Context): void {

12