Please allow an optional return parameter for device.onSettings( )to pass back changed settings (the newSettings object with changed content).
Use case:
In my app a user can set coordinates for a location which are used to check for a reached/left trigger.
To make the setup easier, the user can insert a GoogleMaps link.
In onSettings( ) I currently check for a changed url, start a 1sec timeout and update the depending coordinates in the timeout handler.
But it would( be much better to adjust settings in onSettings( ) and pass back the updated content - to show up in settings screen.
It this would not be possible, a real "onSettingsChanged" event would be nice to handle changed settings after they are stored.
Please allow an optional return parameter for
device.onSettings( )
to pass back changed settings (thenewSettings
object with changed content).Use case: In my app a user can set coordinates for a location which are used to check for a reached/left trigger. To make the setup easier, the user can insert a GoogleMaps link.
In
onSettings( )
I currently check for a changed url, start a 1sec timeout and update the depending coordinates in the timeout handler. But it would( be much better to adjust settings inonSettings( )
and pass back the updated content - to show up in settings screen.It this would not be possible, a real "onSettingsChanged" event would be nice to handle changed settings after they are stored.