In theory, can a single app be a watchface, widget, and datafield? I mean, assuming it can live with the RAM size and API constraints for the different modes, is it possible for one app to tell the system it supports these different modes and to have the system retrieve the right kind of initial view in each case?
This seems like it would be desirable for an app with settings and state it could then share between these different UI modes.
I have seen some CIQ apps that seem to act as a glance widget, and device app on my FR255. I.e. they are installed once and can be in the glance loop, show more detail when selected, and also show up as an app in the activities list. Is this having multiple app types? Or is this just the way Garmin presents a widget type of app on my device?
From examples I've seen, the different types seem to start with Application.AppBase.getInitialView() but there doesn't seem to be a parameter which could tell it which view type to create. Then there are variations like getSettingsView() and getServiceDelegate() that are for specific purposes.
It seems unfortunate that there isn't getWatchfaceView(), getDatafieldView(), getGlanceView(), etc. or conversely a single getView() with a parameter to tell it which view it wants.