public UIView::OnDragListener,\r
public UIView::OnLongPressListener,\r
public ModelListenerSample,\r
- public UIView::OnTouchListener\r
+ public UIView::OnTouchListener,\r
+ public RootView::OnKeyActListener\r
{\r
public:\r
SaveBatPresenter();\r
bool OnLongPress(UIView &view, const LongPressEvent &event);\r
bool OnPress(UIView &view, const PressEvent &event);\r
bool OnRelease(UIView &view, const ReleaseEvent &event);\r
+ bool OnKeyAct(UIView &view, const KeyEvent &event) override; // 增加按键事件\r
\r
uint64_t startTime{0};\r
int count = 3; // 初始计数\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "Refresh_Back_View: 当前计数: %d, 当前进度值: %d", count, progressValue);\r
}\r
}\r
+ bool SaveBatPresenter::OnKeyAct(UIView &view, const KeyEvent &event)\r
+ {\r
+ /*消耗按键事件*/\r
+ return true;\r
+ }\r
}
\ No newline at end of file