Skip to content

Settings API

Valentin edited this page Jan 2, 2022 · 1 revision

meteocool.com Settings API

Most application-specific configuration options can be changed using the Settings API. This is how the "native" meteocool iOS and Android applications communicate with the web view. After the web application has finished initialization, use window.settings.injectSettings({...}); to set multiple settings at once, or use window.settings.set("key": value}); to set single settings values. All settings are applied reactively, i.e. no further action is needed for the setting to be applied. Settings are stored persistently in the browser's/webview's localStorage.

Clone this wiki locally