Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Allow return of newSettings object in device.onSettings( ) #333

Open
RonnyWinkler opened this issue Jan 20, 2024 · 0 comments

Comments

@RonnyWinkler
Copy link

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.

grafik

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants