It returns void, so what does this function do?
It returns void, so what does this function do?
Actually I added logging to both onValidateProperty and validateProperty and tried saving settings in the fr965 simulator both from Application.Properties (aka Connect IQ settings) and from on-device settings (where I save it using Properties.setValue) and I was hoping that onValidateProperty will be called, and I could indeed validate the input and return true or some error message, as the documentation hints, but neither functions were called. I was testing in a DF with fr965 in simulator.
So how are these functions used?
onValidateProperty is the new one, from 4.1.0, and according to doc should be called when user changes the settings before saving property.
But maybe it's dead function like validateProperty
I tried with fr955, which should be min 4.1.2 according to the device json files. Anyone from Garmin? When are we supposed it to be called? Is this a simulator bug (6.4.2) or we misunderstand the documentation?
In sdk 7 also nothing happens.