I'm confused. I don't see any Garmin devices that support API 5.0.0. What am I missing?
I'm confused. I don't see any Garmin devices that support API 5.0.0. What am I missing?
Indeed. For example if you use Menu2 and compile with old SDK (6.4.2) and run on a 5.0.0 device in the simulator then it crashes
Some new useful items under System: Toybox.System (garmin.com)
getDisplayMode() and DisplayMode enum. Only for Amoled devices (mostly). Previously we'd have to use and set a variable in OnEnterSleep and…
So maybe save off the device folder before you get the updates with the SDKmanager I'm fully switched to the 7.1.0 SDK
There really ought to be versioning built in into the sdk manager…
Sure. But it would also be helpful if the search box (top left) worked, which it doesn't for me for a global search. So you already need to know what you're looking for. developer.garmin.com/.../
Some new useful items under System: Toybox.System (garmin.com)
getDisplayMode() and DisplayMode enum. Only for Amoled devices (mostly). Previously we'd have to use and set a variable in OnEnterSleep and OnExitSleep. Also nice to know when the screen is off, so you don't do any updates.
I also see that the simulator menu changed. There's now a Display Mode menu with options for high power and always-active. I don't see anything for screen off though.
Some of it is just keeping up to date on things in News & Announcements, like the System 7 announcement, the 7.0 beta announcements, the 7.1 announcement, and the info in the README I mentioned. That can narrow down where to look in places like the API doc.
You could also do diffs of the API docs between SDK versions, but unfortunately other stuff changes such as CSS styles. Similarly, if you do a diff of api.mir versions, there can be widespread internal changes which aren’t relevant.
Still, it’s a way to skim the changes.
Yeah the search box doesn’t work so well bc the api doc is just a static web page with hardcoded search keywords (you can only search for class names and member names).
If you open the API doc folder in VS Code or some other editor, you could do a full text search from there.
So maybe save off the device folder before you get the updates with the SDKmanager I'm fully switched to the 7.1.0 SDK
There really ought to be versioning built in into the sdk manager for Device definitions too.
It's not logical that you can switch sdks but not Device definitions
It's not logical that you need to save this yourself
In theory if you don't need new functionality of the sdk7 for a certain ciq app then you should also be able to use much older definitions of the Device definitions with the sdk7 as well.
For the record, I cannot reproduce that. Menu2 works fine here, compiled with SDK 6.4.2, running on fr955 5.0.0 in the sim.
can I now use getDisplayMode() to check if the user set his watch in always on mode?