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

    Function settingsSnapshot

    • Snapshots the settings behind a key list so a later save can be diffed against them. A setting with nothing saved reads as its default, which is what a fetch used for it, so a first save or seed that writes the default back does not count as a change. A single value compares by its text, since a default declared as the number 0 comes back from Clay as the string "0", and anything else is JSON-encoded so objects compare by content.

      Parameters

      • keys: string[]

        The settings to snapshot, by message key.

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

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

      Returns string[]

      Each setting as text, in the same order as the keys.