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

    Function watchSettings

    • Watches a list of settings across a visit to the settings page, so a feature refetches only when one of its own settings moved rather than on every save.

      Parameters

      • keys: string[]

        The settings to watch, by message key.

      • defaults: Record<string, unknown> = {}

        The face's config defaults, read for a setting with nothing saved.

      Returns SettingsWatch

      The watch. Call opened when the page opens and changed once it has saved.