I would like to be able to determine the version of CIQ on a device at run-time programmatically from within my application ?
I would like to be able to determine the version of CIQ on a device at run-time programmatically from within my application ?
Copied from the documentation for System.DeviceSettings:
using Toybox.System;
var mySettings = System.getDeviceSettings();
var version = mySettings.monkeyVersion;
var versionString = Lang.format("$1$.$2$.$3$", version);
System.println(versionString); //e.g. 2.2.5Travis posted the code to see the CIQ version, but if you want to determine if something is available, you can also user "has". For example, not all CIQ 3.x.x devices support 1hz seconds, so to determine that at runtime, you could use something like:
if( Toybox.WatchUi.WatchFace has :onPartialUpdate ) {
...
}