Add Properties.getMin/Max functions

I would like a way of referencing the min and max values I set for my properties.  Unless I'm missing something, I have to code these values twice.  After I put them in my settings.xml, I add them to a .mc file where I allow the user to edit the settings.  It doesn't matter whether the .xml references the .mc or vice versa.  I just don't want to have to code my constants in more than one place.

  • So you have regular app settings as well as on device settings?  You have to have them in both places as the on device settings can not access the xml.  The xml is actually used to generate a json file that gets included in the .iq file.

  • Unless I'm getting the two confused, I'm just talking about app settings (the Toybox.Application.Properties module, not the Toybox.Application.Storage module).  Currently, I can use the properties module to set those values outside of the min and max that I set.  The min and min are compile time constants so, hopefully some day I won't have to keep track of those constants in different places.

  • Settings and properties aren't exactly the same thing. For every setting, there is a corresponding property, but not necessarily vice versa. Properties are values that are available to application at runtime, for reading and writing. Settings are options that are available to the user in the Garmin Connect and Connect IQ mobile apps. Think of properties as the backend data store, and settings as the frontend user interface.

    "min" and "max" are attributes of settings, and settings information is sent to the store (to facilitate changing settings in the mobile apps) when you submit/update your app. None of that information makes it into the actual app on the watch, so it's not available at runtime.