Pebble App Framework: Phone API
    Preparing search index...

    Function readSettings

    • The plugin app's settings, its defaults under what the wearer saved.

      Saved settings that do not read as a JSON object read as none, so the defaults stand. A secret key that cannot be read keeps its default in a source handler, so a phone whose keystore is locked still serves with the other settings. The settings page asks for it strictly, since a page that opened on a blank secret would delete the real one on its next save.

      Parameters

      • options: SettingsOptions = {}

        The plugin app's secret keys and defaults.

      • pebble: PluginPebble = ...

        The plugin runtime's Pebble, which a spec stands in for.

      • storage: SettingsStorage = localStorage

        Where the other settings are kept, normally localStorage.

      • strict: boolean = false

        Whether a secret that cannot be read stops the read rather than keeping its default.

      Returns Promise<Record<string, unknown>>

      Every setting, saved or default.