I have a watch face built upon latest API (extending CanvasWatchFaceService.Engine
). Now I'd like to get touch event to have kind of active area in watch face that can be touched to open settings, etc.
A CanvasWatchFaceService.Engine
inherits from WallpaperService.Engine
, which declares two important methods: setTouchEventsEnabled(boolean)
and onTouchEvent(MotionEvent)
.
But even when I call setTouchEventsEnabled(true)
in onCreate()
method of the Engine
I never receive a call to onTouchEvent(MotionEvent)
in my engine implementation.
Am I doing something wrong or is it simply not possible? I'm aware of some watch faces that offer active areas, but I'm not sure if these are built upon latest API or if they are build upon deprecated API (using layouts and GUI elements).