-
Tue 2020.12.08
Hello @bppattan would you mind posting your code so that we may zero in on the problematic event logic, in order to point you to that area to focus on please.
As is, is quite okay, even with those areas one is not so sure about. In this way others may be able to provide some insight on what they have learned over the years.
re: 'API documentation'
Which link are you using for which documentation reference?
A good Tutorial post containing many valuable links:
EDIT:First search result returned using Google:
Bangle reference
https://banglejs.com/reference#l_Bangle_swipe
https://banglejs.com/reference#t_l_Bangle_touch
Some insight may be garnered by viewing an existing app at:Find the 'GitHub' icon to the left below app title 'Touch Launcher' and R-Click open which will take you to: [Line 230]
https://github.com/espruino/BangleApps/blob/master/apps/toucher/app.js#L230
-
Thanks a lot @Robin.
Yes, As I mentioned I did go through the APIs for touch events and didn't find any for a particular area on the screen, hence posted my query. As per the reply by @Gordon below, looks like there aren't any such APIs available.
Thanks for sharing the github link shared above .
btw, I am using https://www.espruino.com/Reference#Bangle for API references
Please note that I am using the emulator for implementation. Don't have the smart watch device.
Q1 :
I use setwatch() on button1 and then I call a function that clears the home screen and displays a new screen with app icons. But, this new screen doesn't remain there. Within a flash of a second, it shows me my app icons and goes back to the home screen immediately. Any idea what am I missing here?
Q2:
I went through the API documentation. I see there is an event to understand touch on the screen-left touch and right touch of the screen. However, I do not see anything where I can get the the touch of an app icon event triggered. I need this functionality. So that the user can open the app on touch of a particular icon. Please let me know how can I achieve this?
Thanks!