This is a simple example of Garmin watch application. The Connect IQ app lets the user to open/close views ("screens") and consume/free some device memory.
It will be used in a tutorial that demonstrates Memory Viewer of the Connect IQ Device simulator.
This project contains configuration files that allows for opening the project in [Visual Studio Code] with Monkey C extension. (Visit the documentation or see dedicated tutorial to set up the environment.)
Creating/closing a view happens when in onNextPage() and onPreviousPage() functions.
For the devices with buttons (for example, Fenix 5, Forerunner 235, etc.) you can invoke the following actions:
- Create and show new view -- down button
- Close current view -- up button
For the devices with a touch screen (for example, Fenix 7, Venue, etc.) onNextPage/onPreviousPage are usually triggered by swiping the touch screen up and down (SWIPE_UP/SWIPE_DOWN events).
There is additional action: forcing to refresh the screen. It happens in onSelect() function. For button devices it is triggered usually by Start/Enter button. For touch screen devices it is usually triggered by tapping the screen (CLICK_TYPE_TAP ClickEvent).
This is an open-source project and all contributions are welcomed.
If you find a bug or have an idea on how to make the example better/simpler/more readable, please, submit an issue (or even PR).