/*---------------------------------------------------------------------------- * Copyright (c) TJD Technologies Co., Ltd. 2024. All rights reserved. * * Description: TjdUiAppActivityRecognitionPresenter.h * * Author: wuchangxin@ss-tjd.com * * Create: 2025-03-25 *--------------------------------------------------------------------------*/ #ifndef TJD_UI_APP_ACTIVITY_RECOGNITION_PRESENTER_H #define TJD_UI_APP_ACTIVITY_RECOGNITION_PRESENTER_H #include "TjdUiScreenDrag.h" #include "components/root_view.h" #include "components/ui_view.h" #include namespace TJD { class TjdUiAppActivityRecognitionPresenter : public OHOS::UIView::OnClickListener, public TjdUiScreenDragListener, public OHOS::RootView::OnKeyActListener { public: TjdUiAppActivityRecognitionPresenter(); ~TjdUiAppActivityRecognitionPresenter(); static TjdUiAppActivityRecognitionPresenter* GetInstance(); bool OnClick(OHOS::UIView &view, const OHOS::ClickEvent &event) override; bool OnKeyAct(OHOS::UIView &view, const OHOS::KeyEvent &event) override; void ScreenDragEventCallback(OHOS::UIView &view, const OHOS::DragEvent &event) override; private: }; } // namespace TJD #endif // TJD_UI_APP_SCREEN_EVENT_RESENTER_H